Commit 0cc7bfcafecd2fbc85c4690cd51bb089e00b2053
Fix channel links in messages
Anders Rune Jensen committed on 4/21/2017, 7:41:20 PMParent: 55731c39cc9ef4ef04404e38f698e269de6e3d6c
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -28,8 +28,9 @@ | ||
28 | 28 … | |
29 | 29 … | MdRenderer.prototype.urltransform = function (href) { |
30 | 30 … | if (!href) return false |
31 | 31 … | switch (href[0]) { |
32 … | + case '#': return '/channel/' + href.slice(1) | |
32 | 33 … | case '%': return this.opts.msg_base + encodeURIComponent(href) |
33 | 34 … | case '@': return this.opts.feed_base + encodeURIComponent(href) |
34 | 35 … | case '&': return this.opts.blob_base + encodeURIComponent(href) |
35 | 36 … | } |
Built with git-ssb-web