From 899d7b42b50c854a82199ec032d3f9184961640d Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 22 Aug 2022 23:44:26 -0700 Subject: [PATCH] Always `signToActivityPubGet` --- .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 8b9d9b4823..7817578d9a 100644 --- a/.config/example.yml +++ b/.config/example.yml @@ -138,9 +138,6 @@ id: 'aid' # 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 78510c8377..2f182e1aeb 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 e89a7b21a7..5c9d44292e 100644 --- a/packages/backend/src/remote/activitypub/resolver.ts +++ b/packages/backend/src/remote/activitypub/resolver.ts @@ -76,7 +76,7 @@ export default class Resolver { throw new Error('Instance is not allowed'); } - if (config.signToActivityPubGet && !this.user) { + if (!this.user) { this.user = await getInstanceActor(); }