fixed view count for guests

This commit is contained in:
barisusakli
2014-10-21 13:59:40 -04:00
parent 3e4b6c97a0
commit 55a5d56989
2 changed files with 2 additions and 1 deletions

View File

@@ -246,6 +246,8 @@ topicsController.get = function(req, res, next) {
topic_url += '?' + queryString; topic_url += '?' + queryString;
} }
topics.increaseViewCount(tid);
if (!res.locals.isAPI) { if (!res.locals.isAPI) {
// Paginator for noscript // Paginator for noscript
data.pages = []; data.pages = [];

View File

@@ -70,7 +70,6 @@ SocketTopics.enter = function(socket, tid, callback) {
} }
SocketTopics.markAsRead(socket, [tid], callback); SocketTopics.markAsRead(socket, [tid], callback);
topics.increaseViewCount(tid);
websockets.updateRoomBrowsingText('topic_' + tid); websockets.updateRoomBrowsingText('topic_' + tid);
}; };