aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 991204d..cd82713 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -1363,7 +1363,22 @@ RenderMsg.prototype.mutualAccount = function (cb) {
}
RenderMsg.prototype.gathering = function (cb) {
- this.wrapMini('gathering', cb)
+ var self = this
+ var id = self.msg.key
+ var idEl = id ? h('code', h('small', id)) : 'gathering'
+ if (self.c.mentions) {
+ self.render.prepareLinks(self.c.mentions, function (err, mentions) {
+ if (err) return cb(err)
+ self.wrap(mentions.map(function (link, i) {
+ return [
+ ' ',
+ h('a', {href: self.toUrl(link.link)}, linkName(link))
+ ]
+ }), cb)
+ })
+ return
+ }
+ self.wrapMini(idEl, cb)
}
RenderMsg.prototype.micro = function (cb) {