add all data to url
parent
93f3f02e73
commit
2a20f77c9e
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue