fix: use resolved object in likes

This commit is contained in:
Opliko
2024-04-10 00:20:16 +02:00
parent b6168202ae
commit 962c63511c

View File

@@ -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);