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 a732cdc1ad
commit de3cdb5833
Signed by: norm
GPG key ID: 7123E30E441E80DE

View file

@ -34,9 +34,7 @@ export 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;