diff --git a/src/api/activitypub.js b/src/api/activitypub.js index 9817a986ec..ec628b2a99 100644 --- a/src/api/activitypub.js +++ b/src/api/activitypub.js @@ -150,6 +150,8 @@ activitypubApi.create.note = enabledCheck(async (caller, { pid, post }) => { if (!post) { return; } + } else { + pid = post.pid; } const allowed = await privileges.posts.can('topics:read', pid, activitypub._constants.uid);