mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-11 10:12:22 +02:00
if no tags are passed in assume 0 tags
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user