Fix channel links in messages

This commit is contained in:
Anders Rune Jensen
2017-04-21 21:41:20 +02:00
parent 55731c39cc
commit 0cc7bfcafe
+1
View File
@@ -29,6 +29,7 @@ MdRenderer.prototype = new marked.Renderer()
MdRenderer.prototype.urltransform = function (href) {
if (!href) return false
switch (href[0]) {
case '#': return '/channel/' + href.slice(1)
case '%': return this.opts.msg_base + encodeURIComponent(href)
case '@': return this.opts.feed_base + encodeURIComponent(href)
case '&': return this.opts.blob_base + encodeURIComponent(href)