mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	fixing #1587 properly for unread count
This commit is contained in:
		| @@ -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++) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user