From 8567deb76bd68a039d3160a9623998bd91ab46bd Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 7 Jan 2020 10:30:22 -0500 Subject: Decode HTML entities in mentions --- lib/serve.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/serve.js b/lib/serve.js index 034915c..cf9357e 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -3836,6 +3836,10 @@ Serve.prototype.composer = function (opts, cb) { } var mentions = ssbMentions(data.text, {bareFeedNames: true, emoji: true}) .filter(function (mention) { + if (typeof mention.name === 'string') { + mention.name = mention.name + .replace(/'/g, "'") + } if (mention.emoji) { mention.link = formEmojiNames[mention.name] if (!mention.link) { -- cgit v1.2.3