diff --git a/Server/src/routes/api/share.js b/Server/src/routes/api/share.js index 3a36366..06f02b5 100644 --- a/Server/src/routes/api/share.js +++ b/Server/src/routes/api/share.js @@ -68,7 +68,15 @@ 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); + const data = { + title: title, + description: description, + imageUrl: imageUrl, + imageWidth: imageWidth, + imageHeight: imageHeight, + url: url + }; + url = req.protocol + '//' + req.hostname + otherUrl + encodeURIComponent(JSON.stringify(data)); var result = ` Old Fashion Baptist Church