add all data to url

test
dan 2020-03-29 21:13:30 -06:00
parent 93f3f02e73
commit 2a20f77c9e
1 changed files with 9 additions and 1 deletions

View File

@ -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 = `<html>
<head>
<title>Old Fashion Baptist Church</title>