From a9e1b1309bbe24128ae26e9d3389d2c0ff2456ef Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 8 Apr 2017 21:27:34 -0700 Subject: Add missing sigil --- 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 380d451..cbdf002 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -313,7 +313,7 @@ RenderMsg.prototype.title = function (cb) { RenderMsg.prototype.getAboutName = function (id, cb) { this.app.getAbout(id, function (err, about) { - cb(err, about && about.name || String(id).substr(1, 8) + '…') + cb(err, about && about.name || (String(id).substr(0, 8) + '…')) }) } -- cgit v1.2.3