This commit is contained in:
barisusakli
2016-07-04 17:49:02 +03:00
parent aadd883594
commit 789a3736af
17 changed files with 275 additions and 173 deletions

View File

@@ -28,6 +28,10 @@ usersController.noPosts = function(req, res, next) {
getUsersByScore('users:postcount', 'noposts', 0, 0, req, res, next);
};
usersController.flagged = function(req, res, next) {
getUsersByScore('users:flags', 'mostflags', 1, '+inf', req, res, next);
};
usersController.inactive = function(req, res, next) {
var timeRange = 1000 * 60 * 60 * 24 * 30 * (parseInt(req.query.months, 10) || 3);
var cutoff = Date.now() - timeRange;