Node.js based forum software built for the modern web
fix topic creation regression caused by 576df8421895667eb0d088a9f4c3b84df0d66d27
Julian Lam5916530a355c
diff --git a/src/topics/create.js b/src/topics/create.jsindex e85db78630..852b987ffc 100644--- a/src/topics/create.js+++ b/src/topics/create.js@@ -329,7 +329,9 @@ module.exports = function (Topics) {function check(item, min, max, minError, maxError, callback) {// Trim and remove HTML (latter for composers that send in HTML, like redactor)- item = S(item.trim()).stripTags().s;+ if (typeof item === 'string') {+ item = S(item.trim()).stripTags().s;+ }if (!item || item.length < parseInt(min, 10)) {return callback(new Error('[[error:' + minError + ', ' + min + ']]'));