summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-05-15 16:47:06 +0100
committerdakkar <dakkar@thenautilus.net>2024-05-15 16:47:06 +0100
commit2d89b08a0840c6554f4a8af47fbd1f8ed5ea76d3 (patch)
tree377fd28f7c0eeedcf8aacda884df2199cdd01c89
parentfirst basic protection - #524 (diff)
downloadsharkey-2d89b08a0840c6554f4a8af47fbd1f8ed5ea76d3.tar.gz
sharkey-2d89b08a0840c6554f4a8af47fbd1f8ed5ea76d3.tar.bz2
sharkey-2d89b08a0840c6554f4a8af47fbd1f8ed5ea76d3.zip
use the current resolver for quotes - #524
this might solve the loop problem, if the protection already in place for replies was enough
-rw-r--r--packages/backend/src/core/activitypub/models/ApNoteService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts
index 6d9dc86c16..ad7b3b145c 100644
--- a/packages/backend/src/core/activitypub/models/ApNoteService.ts
+++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts
@@ -251,7 +251,7 @@ export class ApNoteService {
> => {
if (typeof uri !== 'string' || !/^https?:/.test(uri)) return { status: 'permerror' };
try {
- const res = await this.resolveNote(uri);
+ const res = await this.resolveNote(uri, { resolver });
if (res == null) return { status: 'permerror' };
return { status: 'ok', res };
} catch (e) {
@@ -478,7 +478,7 @@ export class ApNoteService {
> => {
if (!/^https?:/.test(uri)) return { status: 'permerror' };
try {
- const res = await this.resolveNote(uri);
+ const res = await this.resolveNote(uri, { resolver });
if (res == null) return { status: 'permerror' };
return { status: 'ok', res };
} catch (e) {