From 93f3f02e73fe7be528e27a0232d1ce803aa3b3b8 Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 29 Mar 2020 21:08:25 -0600 Subject: [PATCH] Add URL back to og --- Server/src/routes/api/share.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/src/routes/api/share.js b/Server/src/routes/api/share.js index 9cb3511..3a36366 100644 --- a/Server/src/routes/api/share.js +++ b/Server/src/routes/api/share.js @@ -8,6 +8,7 @@ const calendarImageUrl = '/api2/cim/'; const eventUrl = '/api2/share/e'; const sermonImageUrl = '/assets/images/tiny/facebookplay.png'; const sermonUrl = '/api2/share/s'; +const otherUrl = '/api2/share/o'; router.get("/:shareCode",function(req,res){ @@ -67,12 +68,13 @@ function getSermon(req, res, id){ function getOtherMeta(req, res, title, description, imageUrl, imageWidth, imageHeight, url) { imageWidth = imageWidth || 200; imageHeight = imageHeight || 200; + url = req.protocol + '//' + req.hostname + otherUrl + encodeURIComponent(url); var result = ` Old Fashion Baptist Church - +