mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closes #6568
This commit is contained in:
@@ -323,7 +323,7 @@ function addOGImageTagsForPosts(res, posts) {
|
||||
|
||||
function addOGImageTag(res, imageUrl) {
|
||||
if (typeof imageUrl === 'string' && !imageUrl.startsWith('http')) {
|
||||
imageUrl = nconf.get('url') + imageUrl;
|
||||
imageUrl = nconf.get('url') + imageUrl.replace(new RegExp('^' + nconf.get('relative_path')), '');
|
||||
}
|
||||
res.locals.metaTags.push({
|
||||
property: 'og:image',
|
||||
|
||||
Reference in New Issue
Block a user