diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 230cc09f50..04c0854c08 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -153,7 +153,7 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadT function onNewNotification(data) { var tid = ajaxify.variables.get('topic_id'); - if (data && data.tid && parseInt(data.tid, 10) === tid) { + if (data && data.tid && parseInt(data.tid, 10) === parseInt(tid, 10)) { socket.emit('topics.markTopicNotificationsRead', tid); } }