fixed view count for guests

v1.18.x
barisusakli 10 years ago
parent 3e4b6c97a0
commit 55a5d56989

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

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

Loading…
Cancel
Save