Node.js based forum software built for the modern web
fix: protocol
Barış Soner Uşaklıda5605e0b71f
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex fdb0193e2c..7147bedd54 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -338,8 +338,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({