File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -845,6 +845,13 @@ Mocks.notes.private = async ({ messageObj }) => {
845845 const published = messageObj . timestampISO ;
846846 const updated = messageObj . edited ? messageObj . editedISO : undefined ;
847847
848+ const content = await messaging . getMessageField ( messageObj . mid , 'content' ) ;
849+ messageObj . content = content ; // re-send raw content into parsePost
850+ const parsed = await posts . parsePost ( messageObj , 'activitypub.note' ) ;
851+ messageObj . content = sanitize ( parsed . content , sanitizeConfig ) ;
852+ messageObj . content = posts . relativeToAbsolute ( messageObj . content , posts . urlRegex ) ;
853+ messageObj . content = posts . relativeToAbsolute ( messageObj . content , posts . imgRegex ) ;
854+
848855 let source ;
849856 const markdownEnabled = await plugins . isActive ( 'nodebb-plugin-markdown' ) ;
850857 if ( markdownEnabled ) {
You can’t perform that action at this time.
0 commit comments