From 83a55f6adcd246920ba08415dcdf46505503c4a4 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 31 May 2025 22:46:47 -0400 Subject: [PATCH] fix: don't throw on unknown post on Undo(Like) --- src/activitypub/inbox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js index 9b0f5c6987..ec2f9d7fb0 100644 --- a/src/activitypub/inbox.js +++ b/src/activitypub/inbox.js @@ -546,7 +546,8 @@ inbox.undo = async (req) => { case 'Like': { const exists = await posts.exists(id); if (localType !== 'post' || !exists) { - throw new Error('[[error:invalid-pid]]'); + reject('Like', object, actor); + break; } const allowed = await privileges.posts.can('posts:upvote', id, activitypub._constants.uid);