mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +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;
|
topic_url += '?' + queryString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
topics.increaseViewCount(tid);
|
||||||
|
|
||||||
if (!res.locals.isAPI) {
|
if (!res.locals.isAPI) {
|
||||||
// Paginator for noscript
|
// Paginator for noscript
|
||||||
data.pages = [];
|
data.pages = [];
|
||||||
|
|||||||
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user