mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
feat: #8637
This commit is contained in:
@@ -56,7 +56,7 @@ module.exports = function (Messaging) {
|
||||
|
||||
const users = await user.getUsersFields(
|
||||
messages.map(msg => msg && msg.fromuid),
|
||||
['uid', 'username', 'userslug', 'picture', 'status', 'banned']
|
||||
['uid', 'username', 'fullname', 'userslug', 'picture', 'status', 'banned']
|
||||
);
|
||||
|
||||
messages.forEach(function (message, index) {
|
||||
|
||||
@@ -30,7 +30,7 @@ module.exports = function (Posts) {
|
||||
const tids = _.uniq(posts.map(p => p && p.tid));
|
||||
|
||||
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),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user