mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 10:35:52 +02:00
removed icon:bgColor and icon:text from db calls
calculates from username on the fly
This commit is contained in:
@@ -46,7 +46,7 @@ module.exports = function(Posts) {
|
||||
|
||||
async.parallel({
|
||||
users: function(next) {
|
||||
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'picture', 'icon:bgColor', 'icon:text'], next);
|
||||
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'picture'], next);
|
||||
},
|
||||
topicsAndCategories: function(next) {
|
||||
getTopicAndCategories(topicKeys, next);
|
||||
|
||||
@@ -20,7 +20,7 @@ module.exports = function(Posts) {
|
||||
user.getMultipleUserSettings(uids, next);
|
||||
},
|
||||
userData: function(next) {
|
||||
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'reputation', 'postcount', 'picture', 'signature', 'banned', 'status', 'icon:bgColor', 'icon:text'], next);
|
||||
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'reputation', 'postcount', 'picture', 'signature', 'banned', 'status'], next);
|
||||
},
|
||||
online: function(next) {
|
||||
require('../socket.io').isUsersOnline(uids, next);
|
||||
|
||||
Reference in New Issue
Block a user