fix: don't show magic break string in regularly parsed posts, tests for ap mocks lib

This commit is contained in:
Julian Lam
2026-02-26 12:32:24 -05:00
parent cd357aaff5
commit b460506e4d
2 changed files with 91 additions and 0 deletions

View File

@@ -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) {