Skip to content

Node.js based forum software built for the modern web

fix: regression that caused replies to not get federated

Julian Lam652d6c6e2b44
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);