mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
refactor user search
use pagination on results removed infinite scroll changed the term and section to use the query param as well pagination urls respect search
This commit is contained in:
@@ -133,7 +133,19 @@ helpers.getBaseUser = function(userslug, callerUID, callback) {
|
||||
|
||||
async.parallel({
|
||||
user: function(next) {
|
||||
user.getUserFields(uid, ['uid', 'username', 'userslug', 'picture', 'cover:url', 'cover:position', 'status', 'lastonline', 'groupTitle'], next);
|
||||
user.getUserFields(uid, [
|
||||
'uid',
|
||||
'username',
|
||||
'userslug',
|
||||
'picture',
|
||||
'cover:url',
|
||||
'cover:position',
|
||||
'status',
|
||||
'lastonline',
|
||||
'groupTitle',
|
||||
'followingCount',
|
||||
'followerCount'
|
||||
], next);
|
||||
},
|
||||
isAdmin: function(next) {
|
||||
user.isAdministrator(callerUID, next);
|
||||
|
||||
Reference in New Issue
Block a user