mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: post queue notifs
fix moderators not showing up immediately when adding them
This commit is contained in:
@@ -103,7 +103,7 @@ define('admin/manage/admins-mods', ['translator', 'benchpress', 'autocomplete'],
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
app.parseAndTranslate('admin/manage/admins-mods', 'globalMods', { globalMods: [ui.item.user] }, function (html) {
|
app.parseAndTranslate('admin/manage/admins-mods', 'globalMods.members', { globalMods: { members: [ui.item.user] } }, function (html) {
|
||||||
$('.moderator-area[data-cid="' + cid + '"]').prepend(html);
|
$('.moderator-area[data-cid="' + cid + '"]').prepend(html);
|
||||||
$('.no-moderator-warning[data-cid="' + cid + '"]').addClass('hidden');
|
$('.no-moderator-warning[data-cid="' + cid + '"]').addClass('hidden');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ module.exports = function (Posts) {
|
|||||||
], next);
|
], next);
|
||||||
},
|
},
|
||||||
function (results, next) {
|
function (results, next) {
|
||||||
next(null, _.union(results));
|
next(null, _.uniq(_.flattenDeep(results)));
|
||||||
},
|
},
|
||||||
], callback);
|
], callback);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user