From 2a20f77c9e06e16460ec290878266f063dfba355 Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 29 Mar 2020 21:13:30 -0600 Subject: [PATCH] add all data to url --- Server/src/routes/api/share.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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