Skip to content

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.js
index 858becb74d..b4c2d356d4 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -221,7 +221,7 @@ UserNotifications.sendTopicNotificationToFollowers = async function (uid, topicD
db.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;
}