mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 05:20:24 +01:00
Merge branch 'master' of https://github.com/NodeBB/NodeBB
This commit is contained in:
@@ -845,6 +845,13 @@ Mocks.notes.private = async ({ messageObj }) => {
|
|||||||
const published = messageObj.timestampISO;
|
const published = messageObj.timestampISO;
|
||||||
const updated = messageObj.edited ? messageObj.editedISO : undefined;
|
const updated = messageObj.edited ? messageObj.editedISO : undefined;
|
||||||
|
|
||||||
|
const content = await messaging.getMessageField(messageObj.mid, 'content');
|
||||||
|
messageObj.content = content; // re-send raw content into parsePost
|
||||||
|
const parsed = await posts.parsePost(messageObj, 'activitypub.note');
|
||||||
|
messageObj.content = sanitize(parsed.content, sanitizeConfig);
|
||||||
|
messageObj.content = posts.relativeToAbsolute(messageObj.content, posts.urlRegex);
|
||||||
|
messageObj.content = posts.relativeToAbsolute(messageObj.content, posts.imgRegex);
|
||||||
|
|
||||||
let source;
|
let source;
|
||||||
const markdownEnabled = await plugins.isActive('nodebb-plugin-markdown');
|
const markdownEnabled = await plugins.isActive('nodebb-plugin-markdown');
|
||||||
if (markdownEnabled) {
|
if (markdownEnabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user