mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
return topics tags #1557
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
},
|
||||
|
||||
removePunctuation: function(str) {
|
||||
return str.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()?]/g, '');
|
||||
return str.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`<>'"~()?]/g, '');
|
||||
},
|
||||
|
||||
isEmailValid: function(email) {
|
||||
|
||||
@@ -211,6 +211,9 @@ var async = require('async'),
|
||||
return next(null, userCache[topicData.uid]);
|
||||
}
|
||||
user.getUserFields(topicData.uid, ['username', 'userslug', 'picture'], next);
|
||||
},
|
||||
tags: function(next) {
|
||||
Topics.getTopicTagsObjects(topicData.tid, next);
|
||||
}
|
||||
}, function(err, topicInfo) {
|
||||
if(err) {
|
||||
@@ -234,6 +237,7 @@ var async = require('async'),
|
||||
topicData.category = topicInfo.categoryData;
|
||||
topicData.teaser = topicInfo.teaser;
|
||||
topicData.user = topicInfo.user;
|
||||
topicData.tags = topicInfo.tags;
|
||||
|
||||
next(null, topicData);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user