From 8c041619fc4e7903ba9c99b7bd290c0719a21972 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 27 Nov 2020 12:22:17 -0500 Subject: Fix linkifying ssb URIs --- lib/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- cgit v1.2.3