Node.js based forum software built for the modern web
fix: use postData.topic.title instead of topicData.title
Barış Soner Uşaklıd24bc5c52e57
diff --git a/src/user/notifications.js b/src/user/notifications.jsindex 1da0bd63cb..a1d4e7141d 100644--- a/src/user/notifications.js+++ b/src/user/notifications.js@@ -206,15 +206,10 @@ UserNotifications.sendTopicNotificationToFollowers = async function (uid, topicDif (!followers.length) {return;}- let { title } = topicData;- if (title) {- title = utils.decodeHTMLEntities(title);- title = title.replace(/,/g, '\\,');- }const notifObj = await notifications.create({type: 'new-topic',- bodyShort: translator.compile('notifications:user-posted-topic', postData.user.displayname, title),+ bodyShort: translator.compile('notifications:user-posted-topic', postData.user.displayname, postData.topic.title),bodyLong: postData.content,pid: postData.pid,path: `/post/${postData.pid}`,