From dc95ae94d088341770ba2ddc40f71d1244449ad3 Mon Sep 17 00:00:00 2001 From: 4sterisk <4sterisk@ymail.ne.jp> Date: Sun, 29 Dec 2024 03:25:06 +0900 Subject: [PATCH] test --- packages/backend/src/core/activitypub/models/ApNoteService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index 727f78e42f7e..7758da8b4596 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -162,7 +162,8 @@ export class ApNoteService { const urlHost = this.utilityService.punyHost(url).toLowerCase(); const uriHost = this.utilityService.punyHost(note.id).toLowerCase(); - if (urlHost !== uriHost && !this.meta.mismatchUriHosts.some(x => x === `${urlHost},${uriHost}`)) { + //if (urlHost !== uriHost && !this.meta.mismatchUriHosts.some(x => x === `${urlHost},${uriHost}`)) { + 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}`); } }