fix(ApResolverService): remote user who is followed by local user can bypass recursion limit
This commit is contained in:
parent
b4b28bc6c5
commit
65f3f47b9a
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export class Resolver {
|
||||||
throw new Error('cannot resolve already resolved one');
|
throw new Error('cannot resolve already resolved one');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.history.size > this.recursionLimit) {
|
if (this.history.size > this.recursionLimit && (this.user?.followersCount ?? 0) > 0) {
|
||||||
throw new Error(`hit recursion limit: ${this.utilityService.extractDbHost(value)}`);
|
throw new Error(`hit recursion limit: ${this.utilityService.extractDbHost(value)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue