From e171ba59ac2d7c89c66cc692fefa35d8648f9486 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 20 Jul 2015 12:34:21 -0400 Subject: [PATCH] if no tags are passed in assume 0 tags --- src/topics/create.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/topics/create.js b/src/topics/create.js index bfec57e491..3c584b3dbc 100644 --- a/src/topics/create.js +++ b/src/topics/create.js @@ -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) {