Fix url parameters for social network sharing

parent 7f1529ac
Pipeline #1483 passed with stage
in 40 seconds
......@@ -76,12 +76,11 @@ for (let i in fonts) {
Canvas.registerFont('./static/fonts/FiraSans-Bold.otf', {family: 'FiraSans', weight: 'bold'});
function buildUrl(req) {
delete req.query.target;
return req.protocol + '://'
+ req.headers.host + '/'
+ (config.subdir || '')
+ '?'
+ querystring.stringify(req.query);
+ querystring.stringify(req.args);
}
app.get('/generate.png', function (req, res) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment