aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-10 21:28:44 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-10 21:28:44 -1000
commit5c93e1267a7951f6aadae0ac269f73de9da7f423 (patch)
tree35e5af749ee1298a8a57120684af94cc5ce6df56 /lib/render.js
parent23cd085f4cf52dfdd2d00b75c2370cf34508a98a (diff)
parent964cb82322e65c807382c6a84eba0a8e21c1c70f (diff)
downloadpatchfoo-5c93e1267a7951f6aadae0ac269f73de9da7f423.tar.gz
patchfoo-5c93e1267a7951f6aadae0ac269f73de9da7f423.zip
Merge branch 'master' into layout
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/render.js b/lib/render.js
index fd357a0..bf61a43 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -198,6 +198,9 @@ Render.prototype.toUrl = function (href) {
var mentions = this._mentions
if (mentions && href in this._mentions) href = this._mentions[href]
if (/^ssb:\/\//.test(href)) href = href.substr(6)
+ if (/^ssb-blob:\/\//.test(href)) {
+ return this.opts.base + 'zip/' + href.substr(11)
+ }
switch (href[0]) {
case '%':
if (!u.isRef(href)) return false