mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: send the whole post content in summary as well
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user