if no tags are passed in assume 0 tags

This commit is contained in:
barisusakli
2015-07-20 12:34:21 -04:00
parent fba6e1dfe2
commit e171ba59ac

View File

@@ -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) {