mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 17:22:26 +02:00
convert title to string
This commit is contained in:
@@ -89,7 +89,7 @@ module.exports = function (Topics) {
|
||||
|
||||
Topics.post = function (data, callback) {
|
||||
var uid = data.uid;
|
||||
var title = data.title ? data.title.trim() : data.title;
|
||||
var title = String(data.title).trim();
|
||||
data.tags = data.tags || [];
|
||||
|
||||
async.waterfall([
|
||||
|
||||
Reference in New Issue
Block a user