From 4170af908562ae50c5228bb3cf8500f6e84b4212 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 21 Apr 2017 16:29:22 -0700 Subject: Show downvote reason --- lib/render-msg.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/render-msg.js b/lib/render-msg.js index 786294f..692d64f 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -254,7 +254,10 @@ RenderMsg.prototype.vote = function (cb) { self.link(v, function (err, a) { if (err) return cb(err) self.wrapMini([ - v.value > 0 ? 'dug' : v.value < 0 ? 'downvoted' : 'undug', ' ', a], cb) + v.value > 0 ? 'dug' : v.value < 0 ? 'downvoted' : 'undug', + ' ', a, + v.reason ? [' as ', h('q', v.reason)] : '' + ], cb) }) } -- cgit v1.2.3