From 77bfc2450d24b9e40974b04592690b8150caf91d Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Wed, 27 Jul 2022 02:30:49 -0400 Subject: [PATCH] Remove signToActivityPubGet option Makes it so that all requests are signed, equivalent to signToActivityPubGet always being true. --- .config/example.yml | 3 --- packages/backend/src/config/types.ts | 2 -- packages/backend/src/remote/activitypub/resolver.ts | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.config/example.yml b/.config/example.yml index d78a3b678..b2c76e8c4 100644 --- a/.config/example.yml +++ b/.config/example.yml @@ -120,9 +120,6 @@ redis: # Proxy remote files (default: false) #proxyRemoteFiles: true -# Sign to ActivityPub GET request (default: false) -#signToActivityPubGet: true - #allowedPrivateNetworks: [ # '127.0.0.1/32' #] diff --git a/packages/backend/src/config/types.ts b/packages/backend/src/config/types.ts index 78510c837..2f182e1ae 100644 --- a/packages/backend/src/config/types.ts +++ b/packages/backend/src/config/types.ts @@ -63,8 +63,6 @@ export type Source = { mediaProxy?: string; proxyRemoteFiles?: boolean; - - signToActivityPubGet?: boolean; }; /** diff --git a/packages/backend/src/remote/activitypub/resolver.ts b/packages/backend/src/remote/activitypub/resolver.ts index 4c91e0b67..b6be139ff 100644 --- a/packages/backend/src/remote/activitypub/resolver.ts +++ b/packages/backend/src/remote/activitypub/resolver.ts @@ -72,7 +72,7 @@ export default class Resolver { throw new Error('Instance is blocked'); } - if (config.signToActivityPubGet && !this.user) { + if (!this.user) { this.user = await getInstanceActor(); }