aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-13 18:06:43 -0800
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-13 18:06:43 -0800
commit881da5cf2e9fd6f84d104a5bee4a07a78840da8c (patch)
treec8792f3175e30d6d083790e8ddd5923d4c23c9dc /lib
parentc329eae0e6ff3d36d7f21349980d51d9dd587faa (diff)
downloadpatchfoo-881da5cf2e9fd6f84d104a5bee4a07a78840da8c.tar.gz
patchfoo-881da5cf2e9fd6f84d104a5bee4a07a78840da8c.zip
Generate private blob links using querystring-style
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
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' : '')