Skip to content

Node.js based forum software built for the modern web

fix: wrong property name used

Julian Lam08796a0a5929
diff --git a/src/api/activitypub.js b/src/api/activitypub.js
index e91e27f712..e2866589c7 100644
--- a/src/api/activitypub.js
+++ b/src/api/activitypub.js
@@ -124,7 +124,7 @@ activitypubApi.create.note = enabledCheck(async (caller, { pid, post }) => {
return;
}
- const { payload: activity, targets } = await activitypub.mocks.activities.create(pid, caller.uid, post);
+ const { activity, targets } = await activitypub.mocks.activities.create(pid, caller.uid, post);
await Promise.all([
activitypub.send('uid', caller.uid, Array.from(targets), activity),