Skip to content

Node.js based forum software built for the modern web

fix: notification bodyShort truncated if there is a comma in topic title

psychobunny266061c31a56
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({