mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +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;
|
let title = topicData.title;
|
||||||
if (title) {
|
if (title) {
|
||||||
title = utils.decodeHTMLEntities(title);
|
title = utils.decodeHTMLEntities(title);
|
||||||
|
title = title.replace(/,/g, '\\,');
|
||||||
}
|
}
|
||||||
|
|
||||||
const notifObj = await notifications.create({
|
const notifObj = await notifications.create({
|
||||||
|
|||||||
Reference in New Issue
Block a user