mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 09:31:17 +01:00
fix: don't show magic break string in regularly parsed posts, tests for ap mocks lib
This commit is contained in:
@@ -57,6 +57,9 @@ module.exports = function (Posts) {
|
||||
return postData;
|
||||
}
|
||||
|
||||
if (!type.startsWith('activitypub.')) {
|
||||
postData.content = postData.content.replace('[...]', '');
|
||||
}
|
||||
({ postData } = await plugins.hooks.fire('filter:parse.post', { postData, type }));
|
||||
postData.content = translator.escape(postData.content);
|
||||
if (postData.pid) {
|
||||
|
||||
Reference in New Issue
Block a user