mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
removed unnecessary conditionals from app.updateHeader
This commit is contained in:
@@ -510,7 +510,6 @@ var socket,
|
||||
|
||||
var userLabel = loggedInMenu.find('#user_label');
|
||||
|
||||
if (userLabel.length) {
|
||||
if (data.userslug) {
|
||||
userLabel.find('#user-profile-link').attr('href', RELATIVE_PATH + '/user/' + data.userslug);
|
||||
}
|
||||
@@ -522,7 +521,6 @@ var socket,
|
||||
}
|
||||
|
||||
$('#logout-link').on('click', app.logout);
|
||||
}
|
||||
|
||||
updateOnlineStatus(data.uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user