mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
closes #5976
This commit is contained in:
@@ -187,8 +187,11 @@ function addTags(categoryData, res) {
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (categoryData.backgroundImage) {
|
if (categoryData.backgroundImage) {
|
||||||
|
if (!categoryData.backgroundImage.startsWith('http')) {
|
||||||
|
categoryData.backgroundImage = nconf.get('url') + categoryData.backgroundImage;
|
||||||
|
}
|
||||||
res.locals.metaTags.push({
|
res.locals.metaTags.push({
|
||||||
name: 'og:image',
|
property: 'og:image',
|
||||||
content: categoryData.backgroundImage,
|
content: categoryData.backgroundImage,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user