Node.js based forum software built for the modern web
fix: undo(like) targetting unknown pid no longer errors, is just ignored now
Julian Lam459970382532
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.jsindex bbb90051ae..3c91ad3696 100644--- a/src/activitypub/inbox.js+++ b/src/activitypub/inbox.js@@ -803,7 +803,8 @@ inbox.undo = async (req) => {case 'Like': {const exists = await posts.exists(id);if (localType !== 'post' || !exists) {- throw new Error('[[error:invalid-pid]]');+ // Not a valid pid, ignore.+ return;}const allowed = await privileges.posts.can('posts:upvote', id, activitypub._constants.uid);