aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-21 16:29:22 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-21 16:29:22 -0700
commit4170af908562ae50c5228bb3cf8500f6e84b4212 (patch)
tree938a0a16a9192ff8b138842b8a6f92a4b427df0d /lib
parent0adbe757e6376a04670c5b003f373e9f756fb369 (diff)
downloadpatchfoo-4170af908562ae50c5228bb3cf8500f6e84b4212.tar.gz
patchfoo-4170af908562ae50c5228bb3cf8500f6e84b4212.zip
Show downvote reason
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js5
1 files changed, 4 insertions, 1 deletions
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)
})
}