mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-14 18:47:32 +01:00
fix: protocol
This commit is contained in:
@@ -338,8 +338,8 @@ function addOGImageTag(res, image) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!imageUrl.startsWith('http')) {
|
if (!imageUrl.startsWith('http')) {
|
||||||
// (https://domain.com/forum) + (/assets/uploads) + (imagePath)
|
// (https://domain.com/forum) + (/assets/uploads) + (/files/imagePath)
|
||||||
imageUrl = path.posix.join(url, upload_url, imageUrl);
|
imageUrl = url + path.posix.join(upload_url, imageUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.locals.metaTags.push({
|
res.locals.metaTags.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user