From 7e028f14b513d58fa62cd82d8a0cbb5c19376aaf Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 14 Apr 2017 17:08:53 -0700 Subject: Linkify fallback message type --- lib/render-msg.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index faf5a84..711a759 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -502,6 +502,12 @@ RenderMsg.prototype.valueTable = function (val, cb) { innerHTML: self.render.markdown(val.text, val.mentions) })) ) + } else if (key === 'type') { + var type = val.type + return h('tr', + h('td', h('strong', 'type')), + h('td', h('a', {href: self.toUrl('/type/' + type)}, type)) + ) } return h('tr', h('td', h('strong', key)), -- cgit v1.2.3