mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
fix url
This commit is contained in:
@@ -297,14 +297,16 @@ function addTags(topicData, req, res) {
|
|||||||
if (image.startsWith(nconf.get('url') + '/plugins')) {
|
if (image.startsWith(nconf.get('url') + '/plugins')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var data = {
|
res.locals.metaTags.push({
|
||||||
property: 'og:image',
|
property: 'og:image',
|
||||||
content: image,
|
content: image,
|
||||||
noEscape: true,
|
noEscape: true,
|
||||||
};
|
});
|
||||||
res.locals.metaTags.push(data);
|
res.locals.metaTags.push({
|
||||||
data.property = 'og:image:url';
|
property: 'og:image:url',
|
||||||
res.locals.metaTags.push(data);
|
content: image,
|
||||||
|
noEscape: true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user