activitypub: block check for resolving collections

This commit is contained in:
Johann150 2022-12-25 00:01:58 +01:00 committed by Francis Dinh
parent d2066d0d86
commit d7390e09ff
No known key found for this signature in database
GPG Key ID: 7123E30E441E80DE
1 changed files with 1 additions and 3 deletions

View File

@ -32,9 +32,7 @@ export default class Resolver {
}
public async resolveCollection(value: string | IObject): Promise<ICollection | IOrderedCollection> {
const collection = typeof value === 'string'
? await this.resolve(value)
: value;
const collection = await this.resolve(value);
if (isCollectionOrOrderedCollection(collection)) {
return collection;