Skip to content

Node.js based forum software built for the modern web

Bugfix: use sorted set to get user followers in sendTopicNotificationToFollowers

Kalina Panayotova118de65f5eab
diff --git a/src/user/notifications.js b/src/user/notifications.js
index fe9ffc80b8..b92df0ce68 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -258,7 +258,7 @@ var async = require('async'),
};
UserNotifications.sendTopicNotificationToFollowers = function(uid, topicData, postData) {
- db.getSetMembers('followers:' + uid, function(err, followers) {
+ db.getSortedSetRange('followers:' + uid, 0, -1, function(err, followers) {
if (err || !Array.isArray(followers) || !followers.length) {
return;
}