diff options
-rw-r--r-- | lib/render-msg.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 3a55a3b..6cc9f24 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -528,6 +528,12 @@ RenderMsg.prototype.title = function (cb) { }) } +var autoTypes = { + 'gathering': true, + 'tag': true, + 'git-repo': true +} + RenderMsg.prototype.title1 = function (cb) { var self = this if (!self.c || typeof self.c !== 'object') { @@ -562,6 +568,7 @@ RenderMsg.prototype.title1 = function (cb) { if (err) return cb(err) var name = about.name || about.title || (about.description && mdInline(about.description)) + || (self.c.type in autoTypes || Object.keys(self.c).length === 1 ? self.c.type : null) if (name) return cb(null, u.truncate(name, 72)) self.message(function (err, el) { if (err) return cb(err) |