From 55f07d3301b542d78a2e37610b467e074d7d179f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 29 Mar 2017 12:44:40 -0400 Subject: [PATCH] fixed flags list in account info page --- src/user/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/info.js b/src/user/info.js index c3071b84cf..d3ad7d765d 100644 --- a/src/user/info.js +++ b/src/user/info.js @@ -51,7 +51,7 @@ module.exports = function (User) { async.waterfall([ function (next) { async.parallel({ - flags: async.apply(db.getSortedSetRevRangeWithScores, 'uid:' + uid + ':flag:pids', 0, 19), + flags: async.apply(db.getSortedSetRevRangeWithScores, 'flags:byTargetUid:' + uid, 0, 19), bans: async.apply(db.getSortedSetRevRangeWithScores, 'uid:' + uid + ':bans', 0, 19), reasons: async.apply(db.getSortedSetRevRangeWithScores, 'banned:' + uid + ':reasons', 0, 19), }, next);