diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-12-13 18:06:43 -0800 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-12-13 18:06:43 -0800 |
commit | 881da5cf2e9fd6f84d104a5bee4a07a78840da8c (patch) | |
tree | c8792f3175e30d6d083790e8ddd5923d4c23c9dc | |
parent | c329eae0e6ff3d36d7f21349980d51d9dd587faa (diff) | |
download | patchfoo-881da5cf2e9fd6f84d104a5bee4a07a78840da8c.tar.gz patchfoo-881da5cf2e9fd6f84d104a5bee4a07a78840da8c.zip |
Generate private blob links using querystring-style
-rw-r--r-- | lib/serve.js | 2 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 2 insertions, 2 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' : '') diff --git a/package.json b/package.json index 9df638d..76417ae 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "ssb-client": "http://localhost:8989/blobs/get/&EAaUpI+wrJM5/ly1RqZW0GAEF4PmCAmABBj7e6UIrL0=.sha256", "ssb-contact": "^1.2.0", "ssb-marked": "^0.7.1", - "ssb-mentions": "http://localhost:8989/blobs/get/&GKwsJ3ykvOXc24wyNuWBdmnCFpQ+Ltd9ggjoOuOF/Pg=.sha256", + "ssb-mentions": "http://localhost:8989/blobs/get/&GjuxknqKwJqHznKueFNCyIh52v1woz5PB41vqmoHfyM=.sha256", "ssb-sort": "^1.0.0", "stream-to-pull-stream": "^1.7.2" }, |