mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: notification bodyShort truncated if there is a comma in topic title
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user