mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
fix: status and groupTitle, if its not set
This commit is contained in:
@@ -169,7 +169,7 @@ module.exports = function (User) {
|
||||
user.picture = User.getDefaultAvatar();
|
||||
}
|
||||
|
||||
if (user.hasOwnProperty('status') && user.lastonline) {
|
||||
if (user.hasOwnProperty('status') && user.hasOwnProperty('lastonline')) {
|
||||
user.status = User.getStatus(user);
|
||||
}
|
||||
|
||||
@@ -215,6 +215,7 @@ module.exports = function (User) {
|
||||
if (user.groupTitle) {
|
||||
user.groupTitleArray = [user.groupTitle];
|
||||
} else {
|
||||
user.groupTitle = '';
|
||||
user.groupTitleArray = [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user