From 962c63511cfdc0b136b3f66675121c10883779c6 Mon Sep 17 00:00:00 2001 From: Opliko Date: Wed, 10 Apr 2024 00:20:16 +0200 Subject: [PATCH] fix: use resolved object in likes --- 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 1ae86cc4c6..dfd4a95f94 100644 --- a/src/activitypub/inbox.js +++ b/src/activitypub/inbox.js @@ -78,7 +78,7 @@ inbox.update = async (req) => { inbox.like = async (req) => { const { actor, object } = req.body; - const { type, id } = await activitypub.helpers.resolveLocalId(object); + const { type, id } = await activitypub.helpers.resolveLocalId(object.id); if (type !== 'post' || !(await posts.exists(id))) { return reject('Like', object, actor);