Node.js based forum software built for the modern web
fix ipMatch data
Baris Usakli541b78c26de9
diff --git a/src/user/approval.js b/src/user/approval.jsindex d04686a7b0..766cca124b 100644--- a/src/user/approval.js+++ b/src/user/approval.js@@ -178,7 +178,7 @@ module.exports = function (User) {async.parallel([function (next) {- getIPMatchedUsers(user.ip, next);+ getIPMatchedUsers(user, next);},function (next) {getSpamData(user, next);@@ -197,14 +197,18 @@ module.exports = function (User) {], callback);};- function getIPMatchedUsers(ip, callback) {+ function getIPMatchedUsers(user, callback) {async.waterfall([function (next) {- User.getUidsFromSet('ip:' + ip + ':uid', 0, -1, next);+ User.getUidsFromSet('ip:' + user.ip + ':uid', 0, -1, next);},function (uids, next) {User.getUsersFields(uids, ['uid', 'username', 'picture'], next);},+ function (data, next) {+ user.ipMatch = data;+ next();+ }], callback);}