From 266061c31a56f9d8de55df3b89677a8f08aec622 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 10 Mar 2020 11:26:08 -0400 Subject: [PATCH] fix: notification bodyShort truncated if there is a comma in topic title --- src/user/notifications.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/user/notifications.js b/src/user/notifications.js index 4e0cedbac5..4bf159196b 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -174,6 +174,7 @@ UserNotifications.sendTopicNotificationToFollowers = async function (uid, topicD let title = topicData.title; if (title) { title = utils.decodeHTMLEntities(title); + title = title.replace(/,/g, '\\,'); } const notifObj = await notifications.create({