Node.js based forum software built for the modern web
fix: don't send notifications for new topics
Barış Soner Uşaklıc8764dc3f91c
diff --git a/src/user/notifications.js b/src/user/notifications.jsindex 858becb74d..b4c2d356d4 100644--- a/src/user/notifications.js+++ b/src/user/notifications.js@@ -221,7 +221,7 @@ UserNotifications.sendTopicNotificationToFollowers = async function (uid, topicDdb.getSortedSetRange(`followers:${uid}`, 0, -1),topics.getNotificationTitle(topicData.tid, 'title'),]);- const followers = await privileges.categories.filterUids('read', topicData.cid, allFollowers);+ const followers = await privileges.categories.filterUids('topics:read', topicData.cid, allFollowers);if (!followers.length) {return;}