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