diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js index 4b81f9b9e8..b7c84ff127 100644 --- a/src/socket.io/topics.js +++ b/src/socket.io/topics.js @@ -61,8 +61,8 @@ SocketTopics.increaseViewCount = function(socket, tid) { topics.increaseViewCount(tid); } -SocketTopics.markAsRead = function(socket, data) { - if(!data || !tid) { +SocketTopics.markAsRead = function(socket, tid) { + if(!tid || !socket.uid) { return; }