From d7390e09ffd87feee5734cc416a25f105c6ebf29 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 25 Dec 2022 00:01:58 +0100 Subject: [PATCH] activitypub: block check for resolving collections --- packages/backend/src/remote/activitypub/resolver.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/backend/src/remote/activitypub/resolver.ts b/packages/backend/src/remote/activitypub/resolver.ts index e4fdedac94..26ec4e8a69 100644 --- a/packages/backend/src/remote/activitypub/resolver.ts +++ b/packages/backend/src/remote/activitypub/resolver.ts @@ -32,9 +32,7 @@ export default class Resolver { } public async resolveCollection(value: string | IObject): Promise { - const collection = typeof value === 'string' - ? await this.resolve(value) - : value; + const collection = await this.resolve(value); if (isCollectionOrOrderedCollection(collection)) { return collection;