From a255497647e95715d232ef3582a5afa1c0e1d7b3 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 26 Nov 2020 20:12:54 -0500 Subject: Don't over-linkify channels in raw msg --- lib/render-msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index 76bcfad..250719d 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -99,7 +99,7 @@ RenderMsg.prototype.raw = function (cb) { // link to hashtags // TODO: recurse for (var k in c) { - if (!c[k] || c[k][0] !== '#') continue + if (!u.isChannel(c[k])) continue tok = u.token() tokens[tok] = h('a', {href: this.toUrl(c[k])}, c[k]) c[k] = tok -- cgit v1.2.3