v1.18.x
barisusakli 8 years ago
parent 42a8346d2d
commit f464966817

@ -1,6 +1,8 @@
"use strict"; "use strict";
var async = require('async'); var async = require('async');
var validator = require('validator');
var posts = require('../../posts'); var posts = require('../../posts');
var user = require('../../user'); var user = require('../../user');
var categories = require('../../categories'); var categories = require('../../categories');
@ -54,7 +56,7 @@ flagsController.get = function(req, res, next) {
assignees: results.assignees, assignees: results.assignees,
analytics: results.analytics, analytics: results.analytics,
categories: results.categories, categories: results.categories,
byUsername: byUsername, byUsername: validator(String(byUsername)),
sortByCount: sortBy === 'count', sortByCount: sortBy === 'count',
sortByTime: sortBy === 'time', sortByTime: sortBy === 'time',
pagination: pagination.create(page, pageCount, req.query), pagination: pagination.create(page, pageCount, req.query),

Loading…
Cancel
Save