diff --git a/public/src/client/topic.js b/public/src/client/topic.js index cd8940320b..bf328d869e 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -58,7 +58,7 @@ define('forum/topic', [ $(window).trigger('action:topic.loaded'); - if (app.user.uid) { + if (app.uid) { socket.emit('topics.enter', tid, function(err, data) { if (err) { return app.alertError(err.message); diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index 2aead12a1b..6303ca8864 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -140,7 +140,7 @@ define('forum/topic/posts', [ pids.push(posts[i].pid); } - if (app.user.uid) { + if (app.uid) { socket.emit('posts.getPrivileges', pids, function(err, privileges) { if(err) { return app.alertError(err.message);