fix: protocol

This commit is contained in:
Barış Soner Uşaklı
2026-01-23 17:34:11 -05:00
parent 310e90c782
commit da5605e0b7

View File

@@ -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({