diff options
Diffstat (limited to 'lib/render.js')
-rw-r--r-- | lib/render.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js index 66f4e7f..91bd2ab 100644 --- a/lib/render.js +++ b/lib/render.js @@ -251,7 +251,7 @@ Render.prototype.toUrl = function (href) { if (!href) return 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:/.test(href)) href = u.translateFromURI(href) || href if (/^ssb-blob:\/\//.test(href)) { return this.opts.base + 'zip/' + href.substr(11) } |