mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 15:17:02 +02:00
use backgroundImage if its passed in
This commit is contained in:
@@ -43,6 +43,10 @@ module.exports = function (Categories) {
|
||||
imageClass: 'cover',
|
||||
};
|
||||
|
||||
if (data.backgroundImage) {
|
||||
category.backgroundImage = data.backgroundImage;
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:category.create', { category: category, data: data }, next);
|
||||
},
|
||||
function (data, next) {
|
||||
|
||||
Reference in New Issue
Block a user