fixing #1587 properly for unread count

This commit is contained in:
psychobunny
2014-05-28 18:20:02 -04:00
parent 08bbf7fdd8
commit 791fde7904
4 changed files with 8 additions and 13 deletions

View File

@@ -162,18 +162,6 @@ topicsController.get = function(req, res, next) {
topic_url += '?' + queryString;
}
if (!req.query.prefetched) {
topics.increaseViewCount(tid);
if (uid) {
topics.markAsRead(tid, uid, function(err) {
topics.pushUnreadCount(uid);
topics.markTopicNotificationsRead(tid, uid);
});
}
}
// Paginator for noscript
data.pages = [];
for(var x=1; x<=data.pageCount; x++) {