mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fixed view count for guests
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user