Node.js based forum software built for the modern web
fix for topics view count, and marking topics as unread
psychobunny30cfddda685a
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex f71e751627..4063d58f2e 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -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 noscriptdata.pages = [];for(var x=1;x<=data.pageCount;x++) {