summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2024-11-21 10:55:42 -0500
committerHazelnoot <acomputerdog@gmail.com>2024-11-26 08:59:08 -0500
commitface6527f2a59c473da29a076c44e1592c8ef9d6 (patch)
tree9ed8e2af1feefc1c697b4ecf5bc834c7e9bd5e17 /packages/backend/src
parentimprove AP error formtting (diff)
downloadsharkey-face6527f2a59c473da29a076c44e1592c8ef9d6.tar.gz
sharkey-face6527f2a59c473da29a076c44e1592c8ef9d6.tar.bz2
sharkey-face6527f2a59c473da29a076c44e1592c8ef9d6.zip
remove duplicate check for note.url
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/core/activitypub/models/ApNoteService.ts4
1 files changed, 0 insertions, 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}`);