Skip to content

Node.js based forum software built for the modern web

use backgroundImage if its passed in

Barış Soner Uşaklı02dee48329a8
diff --git a/src/categories/create.js b/src/categories/create.js
index faae87a610..326545d76c 100644
--- a/src/categories/create.js
+++ b/src/categories/create.js
@@ -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) {