From 5c5fd3d44fac48474f0fe0dc26e200f9ff871f7d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 22 Apr 2025 15:20:52 -0400 Subject: [PATCH] feat: send the whole post content in `summary` as well --- src/activitypub/mocks.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js index 00cf8d1cc3..389e9a5441 100644 --- a/src/activitypub/mocks.js +++ b/src/activitypub/mocks.js @@ -707,6 +707,7 @@ Mocks.notes.public = async (post) => { attachment = normalizeAttachment(attachment); let preview; + let summary = null; if (isMainPost) { preview = { type: 'Note', @@ -715,6 +716,8 @@ Mocks.notes.public = async (post) => { published, attachment: normalizeAttachment(noteAttachment), }; + + summary = post.content; } let context = await posts.getPostField(post.pid, 'context'); @@ -747,7 +750,7 @@ Mocks.notes.public = async (post) => { attributedTo: `${nconf.get('url')}/uid/${post.user.uid}`, context, audience, - summary: null, + summary, name, preview, content: post.content,