git ssb

9+

cel / ssb-viewer



Commit 0cc7bfcafecd2fbc85c4690cd51bb089e00b2053

Fix channel links in messages

Anders Rune Jensen committed on 4/21/2017, 7:41:20 PM
Parent: 55731c39cc9ef4ef04404e38f698e269de6e3d6c

Files changed

index.jschanged
index.jsView
@@ -28,8 +28,9 @@
2828
2929 MdRenderer.prototype.urltransform = function (href) {
3030 if (!href) return false
3131 switch (href[0]) {
32 + case '#': return '/channel/' + href.slice(1)
3233 case '%': return this.opts.msg_base + encodeURIComponent(href)
3334 case '@': return this.opts.feed_base + encodeURIComponent(href)
3435 case '&': return this.opts.blob_base + encodeURIComponent(href)
3536 }

Built with git-ssb-web