if no tags are passed in assume 0 tags

v1.18.x
barisusakli 10 years ago
parent fba6e1dfe2
commit e171ba59ac

@ -91,6 +91,7 @@ module.exports = function(Topics) {
Topics.post = function(data, callback) {
var uid = data.uid;
var title = data.title ? data.title.trim() : data.title;
data.tags = data.tags || [];
async.waterfall([
function(next) {

Loading…
Cancel
Save