mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 08:19:48 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -346,8 +346,8 @@ function addOGImageTag(res, image) {
|
||||
}
|
||||
|
||||
if (!imageUrl.startsWith('http')) {
|
||||
// (https://domain.com/forum) + (/assets/uploads) + (imagePath)
|
||||
imageUrl = path.posix.join(url, upload_url, imageUrl);
|
||||
// (https://domain.com/forum) + (/assets/uploads) + (/files/imagePath)
|
||||
imageUrl = url + path.posix.join(upload_url, imageUrl);
|
||||
}
|
||||
|
||||
res.locals.metaTags.push({
|
||||
|
||||
Reference in New Issue
Block a user