Update username for stories and comments on username change in profile
This commit is contained in:
@ -350,7 +350,7 @@ exports.postUpdateProfile = function(req, res, next) {
|
||||
}
|
||||
req.flash('success', {msg: 'Profile information updated.'});
|
||||
res.redirect('/account');
|
||||
resources.updateUserStoryPictures(user._id.toString(), user.profile.picture);
|
||||
resources.updateUserStoryPictures(user._id.toString(), user.profile.picture, user.profile.username);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user