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

v1.18.x
psychobunny 5 years ago
parent af5c6b8824
commit 266061c31a

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

Loading…
Cancel
Save