mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
fix for topics view count, and marking topics as unread
This commit is contained in:
@@ -159,6 +159,15 @@ topicsController.get = function(req, res, next) {
|
||||
topic_url += '?' + queryString;
|
||||
}
|
||||
|
||||
|
||||
if (uid) {
|
||||
topics.markAsRead(tid, uid, function(err) {
|
||||
topics.pushUnreadCount(uid);
|
||||
});
|
||||
}
|
||||
|
||||
topics.increaseViewCount(tid);
|
||||
|
||||
// Paginator for noscript
|
||||
data.pages = [];
|
||||
for(var x=1;x<=data.pageCount;x++) {
|
||||
|
||||
Reference in New Issue
Block a user