v1.18.x
Barış Soner Uşaklı 4 years ago
parent 39279a1e54
commit 903e9d82b8

@ -56,7 +56,7 @@ module.exports = function (Messaging) {
const users = await user.getUsersFields( const users = await user.getUsersFields(
messages.map(msg => msg && msg.fromuid), messages.map(msg => msg && msg.fromuid),
['uid', 'username', 'userslug', 'picture', 'status', 'banned'] ['uid', 'username', 'fullname', 'userslug', 'picture', 'status', 'banned']
); );
messages.forEach(function (message, index) { messages.forEach(function (message, index) {

@ -30,7 +30,7 @@ module.exports = function (Posts) {
const tids = _.uniq(posts.map(p => p && p.tid)); const tids = _.uniq(posts.map(p => p && p.tid));
const [users, topicsAndCategories] = await Promise.all([ const [users, topicsAndCategories] = await Promise.all([
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'picture', 'status']), user.getUsersFields(uids, ['uid', 'username', 'fullname', 'userslug', 'picture', 'status']),
getTopicAndCategories(tids), getTopicAndCategories(tids),
]); ]);

Loading…
Cancel
Save