Skip to content

Node.js based forum software built for the modern web

fix: logic derp

Julian Lam9795abbf5897
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index 58e9d101a2..939f9abe7e 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -59,7 +59,7 @@ inbox.update = async (req) => {
inbox.like = async (req) => {
const { actor, object } = req.body;
const { type, id } = await activitypub.helpers.resolveLocalId(object);
- if (type !== 'post' || await posts.exists(id)) {
+ if (type !== 'post' || !(await posts.exists(id))) {
throw new Error('[[error:activitypub.invalid-id]]');
}