feat: send the whole post content in summary as well

This commit is contained in:
Julian Lam
2025-04-22 15:20:52 -04:00
parent c2a3ef817d
commit 5c5fd3d44f

View File

@@ -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,