aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/render.js b/lib/render.js
index 0cc96c6..573f5d8 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -100,6 +100,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)
switch (href[0]) {
case '%': return this.opts.base + encodeURIComponent(href)
case '@':