mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
closes #2745
generate paths on retrieval instead of notification creation also fix follow notification path
This commit is contained in:
@@ -55,11 +55,12 @@ var async = require('async'),
|
||||
}
|
||||
|
||||
if (notification.from && !notification.image) {
|
||||
User.getUserField(notification.from, 'picture', function(err, picture) {
|
||||
User.getUserFields(notification.from, ['username', 'userslug', 'picture'], function(err, userData) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
notification.image = picture;
|
||||
notification.image = userData.picture;
|
||||
notification.user = userData;
|
||||
next(null, notification);
|
||||
});
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user