mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
notifications dropdown
This commit is contained in:
@@ -55,11 +55,11 @@ var async = require('async'),
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (notification.from && !notification.image) {
|
if (notification.from && !notification.image) {
|
||||||
User.getUserFields(notification.from, ['username', 'userslug', 'picture'], function(err, userData) {
|
User.getUserFields(notification.from, ['username', 'userslug', 'picture', 'icon:bgColor', 'icon:text'], function(err, userData) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
notification.image = userData.picture;
|
notification.image = userData.picture || null;
|
||||||
notification.user = userData;
|
notification.user = userData;
|
||||||
next(null, notification);
|
next(null, notification);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user