From 31773694493b0884efec156d2ed1194df320d256 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 25 Feb 2026 12:37:58 -0500 Subject: [PATCH] fix: remove `preview` in mocked note for now, due to lack of support (fep-b2b8) --- src/activitypub/mocks.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js index 7189e59287..680bdf2e51 100644 --- a/src/activitypub/mocks.js +++ b/src/activitypub/mocks.js @@ -743,16 +743,17 @@ Mocks.notes.public = async (post) => { attachment = normalizeAttachment(attachment); const image = attachment.filter(entry => entry.type === 'Image')?.shift(); - let preview; + // let preview; let summary = null; if (isArticle) { - preview = { - type: 'Note', - attributedTo: `${nconf.get('url')}/uid/${post.user.uid}`, - content: post.content, - published, - attachment, - }; + // Preview is not adopted by anybody, so is left commented-out for now + // preview = { + // type: 'Note', + // attributedTo: `${nconf.get('url')}/uid/${post.user.uid}`, + // content: post.content, + // published, + // attachment, + // }; const sentences = tokenizer.sentences(post.content, { newline_boundaries: true }); // Append sentences to summary until it contains just under 500 characters of content @@ -807,7 +808,7 @@ Mocks.notes.public = async (post) => { context, audience, ...(summary && { summary }), - preview, + // preview, content: post.content, source, tag,