mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
closes #2516
This commit is contained in:
@@ -58,7 +58,14 @@ define('forum/topic', [
|
||||
|
||||
$(window).trigger('action:topic.loaded');
|
||||
|
||||
socket.emit('topics.enter', tid);
|
||||
if (app.user.uid) {
|
||||
socket.emit('topics.enter', tid, function(err, data) {
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
browsing.onUpdateUsersInRoom(data);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Topic.toTop = function() {
|
||||
|
||||
Reference in New Issue
Block a user