From 9795abbf5897d79d947945d6f0185703cceb53e9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 6 Feb 2024 15:20:30 -0500 Subject: [PATCH] fix: logic derp --- src/activitypub/inbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]]'); }