mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
removed commented out stuff removed topics.enter
This commit is contained in:
@@ -265,6 +265,18 @@ topicsController.get = function(req, res, callback) {
|
||||
|
||||
topics.increaseViewCount(tid);
|
||||
|
||||
if (req.uid) {
|
||||
topics.markAsRead([tid], req.uid, function(err, markedRead) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
if (markedRead) {
|
||||
topics.pushUnreadCount(req.uid);
|
||||
topics.markTopicNotificationsRead(tid, req.uid);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:topic.build', {req: req, res: res, templateData: data}, function(err, data) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
|
||||
Reference in New Issue
Block a user