activitypub: block check for resolving collections
This commit is contained in:
parent
a732cdc1ad
commit
de3cdb5833
1 changed files with 1 additions and 3 deletions
|
@ -34,9 +34,7 @@ export class Resolver {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async resolveCollection(value: string | IObject): Promise<ICollection | IOrderedCollection> {
|
public async resolveCollection(value: string | IObject): Promise<ICollection | IOrderedCollection> {
|
||||||
const collection = typeof value === 'string'
|
const collection = await this.resolve(value);
|
||||||
? await this.resolve(value)
|
|
||||||
: value;
|
|
||||||
|
|
||||||
if (isCollectionOrOrderedCollection(collection)) {
|
if (isCollectionOrOrderedCollection(collection)) {
|
||||||
return collection;
|
return collection;
|
||||||
|
|
Loading…
Reference in a new issue