From 881da5cf2e9fd6f84d104a5bee4a07a78840da8c Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 13 Dec 2017 18:06:43 -0800 Subject: Generate private blob links using querystring-style --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/serve.js b/lib/serve.js index 56b981b..066f5d4 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -2458,7 +2458,7 @@ Serve.prototype.composer = function (opts, cb) { if (data.upload) { var href = data.upload.link - + (data.upload.key ? '#' + data.upload.key : '') + + (data.upload.key ? '?unbox=' + data.upload.key + '.boxs': '') // TODO: be able to change the content-type var isImage = /^image\//.test(data.upload.type) data.text = (data.text ? data.text + '\n' : '') -- cgit v1.2.3