From 0c75934adf4040ad83f10b454aa8dbc9bd7c2f80 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 13 Jan 2026 11:25:18 -0500 Subject: [PATCH] fix: #13889, custom emoji from Piefed --- src/posts/create.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/posts/create.js b/src/posts/create.js index 064e337a94..044b07d699 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -60,7 +60,8 @@ module.exports = function (Posts) { tag.name = `${tag.name}:`; } - postData.content = postData.content.replace(new RegExp(tag.name, 'g'), ``); + const property = postData.sourceContent && !postData.content ? 'sourceContent' : 'content'; + postData[property] = postData[property].replace(new RegExp(tag.name, 'g'), ``); }); }