From d24bc5c52e57948d9514e8b0402b7eed87d70a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 24 Oct 2024 19:25:24 -0400 Subject: [PATCH] fix: use postData.topic.title instead of topicData.title --- src/user/notifications.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/user/notifications.js b/src/user/notifications.js index 1da0bd63cb..a1d4e7141d 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -206,15 +206,10 @@ UserNotifications.sendTopicNotificationToFollowers = async function (uid, topicD if (!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}`,