aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js4
1 files changed, 4 insertions, 0 deletions
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) {