return topics tags #1557

v1.18.x
barisusakli 11 years ago
parent 87fe5bf1bb
commit 3f43db090b

@ -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);
});

Loading…
Cancel
Save