fix for topics view count, and marking topics as unread

v1.18.x
psychobunny 11 years ago
parent 857df86726
commit 30cfddda68

@ -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++) {

Loading…
Cancel
Save