aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-11-26 20:12:54 -0500
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-11-26 20:54:34 -0500
commita255497647e95715d232ef3582a5afa1c0e1d7b3 (patch)
tree3307834108e7a3ba536748a9e27a6e7f6158b922 /lib/render-msg.js
parent81d480f805f7e848f179ae9d877459d56c3d6ac9 (diff)
downloadpatchfoo-a255497647e95715d232ef3582a5afa1c0e1d7b3.tar.gz
patchfoo-a255497647e95715d232ef3582a5afa1c0e1d7b3.zip
Don't over-linkify channels in raw msg
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
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