mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
feat: #8637
This commit is contained in:
@@ -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),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user