mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
lint: fix lint issue
This commit is contained in:
@@ -222,7 +222,7 @@ function addTags(categoryData, res, currentPage) {
|
||||
];
|
||||
|
||||
if (categoryData.backgroundImage) {
|
||||
let {backgroundImage} = categoryData;
|
||||
let { backgroundImage } = categoryData;
|
||||
backgroundImage = utils.decodeHTMLEntities(backgroundImage);
|
||||
if (!backgroundImage.startsWith('http')) {
|
||||
backgroundImage = url + backgroundImage.replace(new RegExp(`^${nconf.get('relative_path')}`), '');
|
||||
|
||||
Reference in New Issue
Block a user