From 652d6c6e2b444156cf97febebc0c4fbbbed456b7 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 6 Sep 2024 22:04:20 -0400 Subject: [PATCH] fix: regression that caused replies to not get federated --- src/api/activitypub.js | 2 ++ 1 file changed, 2 insertions(+) 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);