diff --git a/src/posts/create.js b/src/posts/create.js index 388dcde606..8833593b32 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -52,7 +52,7 @@ module.exports = function (Posts) { isEmojiShortcode.test(tag.name) && tag.icon && tag.icon.mediaType && tag.icon.mediaType.startsWith('image/')) .forEach((tag) => { - postData.content = postData.content.replace(new RegExp(tag.name, 'g'), ``); + postData.content = postData.content.replace(new RegExp(tag.name, 'g'), ``); }); }