From 544a8927a47bc0e4cc2f925b0dd248668701c906 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 23 Nov 2018 14:48:00 -1000 Subject: Add root and branch to vote messages ref: %gdDgsa46yHeHkFrCMSUwbRboOA2xFxhMjGqmt48EapM=.sha256 --- lib/render-msg.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index 5a3723e..ca07dd8 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -220,9 +220,13 @@ RenderMsg.prototype.buttonsCommon = function () { RenderMsg.prototype.voteButton = function (expression) { var chan = this.msg.value.content.channel + var root = this.msg.threadRoot + var branches = u.toArray(this.msg.threadBranches) return [ h('input', {type: 'hidden', name: 'vote_value', value: 1}), h('input', {type: 'hidden', name: 'vote_expression', value: expression}), + h('input', {type: 'hidden', name: 'root', value: root}), + h('input', {type: 'hidden', name: 'branches', value: branches.join(',')}), h('input', {type: 'submit', name: 'action_vote', value: expression})] } -- cgit v1.2.3