mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 15:50:10 +02:00
fix missing category data
This commit is contained in:
@@ -253,6 +253,9 @@ var db = require('./database'),
|
||||
}
|
||||
|
||||
async.map(categories, function(category, next) {
|
||||
if (!category) {
|
||||
return next(null, category);
|
||||
}
|
||||
category.name = validator.escape(category.name);
|
||||
category.description = validator.escape(category.description);
|
||||
category.backgroundImage = category.image ? nconf.get('relative_path') + category.image : '';
|
||||
|
||||
Reference in New Issue
Block a user