From 66ec8756240f84db5fc63818fa2c9a21603f9dd6 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Mon, 23 Jan 2023 18:05:17 +0100 Subject: [PATCH] server: also search human readable URL Changelog: Fixed --- packages/backend/src/remote/activitypub/db-resolver.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/remote/activitypub/db-resolver.ts b/packages/backend/src/remote/activitypub/db-resolver.ts index 7f913de0b..dc1b47fef 100644 --- a/packages/backend/src/remote/activitypub/db-resolver.ts +++ b/packages/backend/src/remote/activitypub/db-resolver.ts @@ -62,9 +62,11 @@ export class DbResolver { id: parsed.id, }); } else { - return await Notes.findOneBy({ + return await Notes.findOneBy([{ uri: parsed.uri, - }); + }, { + url: parsed.uri, + }]); } }