From 8cb9e048ae447a12215727a0614581dd80f16ec3 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Wed, 27 Nov 2024 02:48:27 +0800 Subject: [PATCH] backend: removed uri and url mismatch checking --- .../backend/src/core/activitypub/models/ApNoteService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index 21183e12d..5f77e7d0b 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -165,9 +165,9 @@ export class ApNoteService { throw new Error('unexpected schema of note url: ' + url); } - if (this.utilityService.punyHost(url) !== this.utilityService.punyHost(note.id)) { - throw new Error(`note url & uri host mismatch: note url: ${url}, note uri: ${note.id}`); - } + // if (this.utilityService.punyHost(url) !== this.utilityService.punyHost(note.id)) { + // throw new Error(`note url & uri host mismatch: note url: ${url}, note uri: ${note.id}`); + // } } this.logger.info(`Creating the Note: ${note.id}`);