Node.js based forum software built for the modern web
fixed view count for guests
barisusakli55a5d56989c2
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex 01246b8adc..b3ea5b5f27 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -246,6 +246,8 @@ topicsController.get = function(req, res, next) {topic_url += '?' + queryString;}+ topics.increaseViewCount(tid);+if (!res.locals.isAPI) {// Paginator for noscriptdata.pages = [];diff --git a/src/socket.io/topics.js b/src/socket.io/topics.jsindex c7bfaa49a0..fdc0955f7c 100644--- a/src/socket.io/topics.js+++ b/src/socket.io/topics.js@@ -70,7 +70,6 @@ SocketTopics.enter = function(socket, tid, callback) {}SocketTopics.markAsRead(socket, [tid], callback);- topics.increaseViewCount(tid);websockets.updateRoomBrowsingText('topic_' + tid);};