Merge branch 'master' of github.com:designcreateplay/NodeBB

v1.18.x
Julian Lam 12 years ago
commit d5437ca8fa

@ -30,6 +30,7 @@
"gravatar": "1.0.6",
"nconf": "~0.6.7",
"sitemap": "~0.6.0",
"cheerio": "~0.12.0",
"request": "~2.25.0",
"reds": "~0.2.4",
"winston": "~0.7.2",
@ -37,7 +38,8 @@
"nodebb-plugin-markdown": "~0.1.0",
"rss": "~0.2.0",
"prompt": "~0.2.11",
"uglify-js": "~2.4.0"
"uglify-js": "~2.4.0",
"validator": "~1.5.1"
},
"bugs": {
"url": "https://github.com/designcreateplay/NodeBB/issues"
@ -45,20 +47,26 @@
"engines": {
"node": ">=0.8"
},
"contributors": [{
"contributors": [
{
"name": "Andrew Rodrigues",
"email": "andrew@designcreateplay.com"
}, {
},
{
"name": "Julian Lam",
"email": "julian@designcreateplay.com"
}, {
},
{
"name": "Barış Soner Uşaklı",
"email": "baris@designcreateplay.com"
}, {
},
{
"name": "Damian Bushong",
"url": "https://github.com/damianb"
}, {
},
{
"name": "Matt Smith",
"url": "https://github.com/soimafreak"
}]
}
]
}

@ -12,7 +12,8 @@ schema = require('./schema.js'),
feed = require('./feed.js'),
favourites = require('./favourites.js'),
reds = require('reds'),
topicSearch = reds.createSearch('nodebbtopicsearch');
topicSearch = reds.createSearch('nodebbtopicsearch'),
validator = require('validator');
(function(Topics) {
@ -655,7 +656,7 @@ schema = require('./schema.js'),
var slug = tid + '/' + utils.slugify(title);
var timestamp = Date.now();
title = validator.sanitize(title).escape();
RDB.hmset('topic:' + tid, {
'tid': tid,
'uid': uid,

Loading…
Cancel
Save