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