activitypub: block check for resolving collections
This commit is contained in:
parent
d2066d0d86
commit
d7390e09ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue