From face6527f2a59c473da29a076c44e1592c8ef9d6 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Thu, 21 Nov 2024 10:55:42 -0500 Subject: [PATCH] remove duplicate check for note.url --- packages/backend/src/core/activitypub/models/ApNoteService.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index cd27e562a8..3d4a33ded2 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -439,10 +439,6 @@ export class ApNoteService { const url = getOneApHrefNullable(note.url); - if (url && !checkHttps(url)) { - throw new UnrecoverableError(`unexpected schema of note url ${url}: ${noteUri}`); - } - if (url != null) { if (!checkHttps(url)) { throw new UnrecoverableError(`unexpected schema of note.url ${url} in ${noteUri}`);