From 3968c822a2291d32d79a86ba625858a90e8496f9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 14 Nov 2024 15:08:09 -0500 Subject: [PATCH] feat: add title property to custom emoji markup --- src/posts/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), ``); }); }