mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
removed unused code from category and topic controller
This commit is contained in:
@@ -239,12 +239,6 @@ topicsController.get = function(req, res, next) {
|
||||
data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
|
||||
data.csrf = req.csrfToken();
|
||||
|
||||
var topic_url = tid + (req.params.slug ? '/' + req.params.slug : '');
|
||||
var queryString = qs.stringify(req.query);
|
||||
if(queryString.length) {
|
||||
topic_url += '?' + queryString;
|
||||
}
|
||||
|
||||
topics.increaseViewCount(tid);
|
||||
|
||||
if (!res.locals.isAPI) {
|
||||
|
||||
Reference in New Issue
Block a user