mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 11:17:29 +02:00
fix: icon:text and icon:bgColor for remote users
This commit is contained in:
@@ -246,7 +246,7 @@ module.exports = function (User) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// User Icons
|
// User Icons
|
||||||
if (requestedFields.includes('picture') && user.username && parseInt(user.uid, 10) && !meta.config.defaultAvatar) {
|
if (requestedFields.includes('picture') && user.username && parseInt(user.uid, 10) !== 0 && !meta.config.defaultAvatar) {
|
||||||
const iconBackgrounds = await User.getIconBackgrounds(user.uid);
|
const iconBackgrounds = await User.getIconBackgrounds(user.uid);
|
||||||
let bgColor = await User.getUserField(user.uid, 'icon:bgColor');
|
let bgColor = await User.getUserField(user.uid, 'icon:bgColor');
|
||||||
if (!iconBackgrounds.includes(bgColor)) {
|
if (!iconBackgrounds.includes(bgColor)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user