Skip to content

Node.js based forum software built for the modern web

fix: handle Undo(Dislike), cc @panosda

Julian Lam479bb753ce2a
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index d827140e1a..cc42b7f3a1 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -715,6 +715,7 @@ inbox.undo = async (req) => {
break;
}
+ case 'Dislike': // falls through
case 'Like': {
const exists = await posts.exists(id);
if (localType !== 'post' || !exists) {