mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 08:17:57 +02:00
use unescaped tag to get data
This commit is contained in:
@@ -15,11 +15,11 @@ tagsController.getTag = function(req, res, next) {
|
||||
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
topics.getTagTids(tag, 0, stop, next);
|
||||
topics.getTagTids(req.params.tag, 0, stop, next);
|
||||
},
|
||||
function(tids, next) {
|
||||
if (Array.isArray(tids) && !tids.length) {
|
||||
topics.deleteTag(tag);
|
||||
topics.deleteTag(req.params.tag);
|
||||
return res.render('tag', {
|
||||
topics: [],
|
||||
tag: tag,
|
||||
|
||||
Reference in New Issue
Block a user