aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-13 02:24:35 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-13 02:24:35 -0700
commit8f8f334d5eb06c64ab67e1ea266da696c54ad116 (patch)
treee185d2e6bee27c1cfba901476e310366924e1249 /lib/render-msg.js
parent69c7116d0e1b23d9643e2dc4821862c17a5d3c8b (diff)
downloadpatchfoo-8f8f334d5eb06c64ab67e1ea266da696c54ad116.tar.gz
patchfoo-8f8f334d5eb06c64ab67e1ea266da696c54ad116.zip
Dig in channel
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 87e0364..faf5a84 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -171,10 +171,12 @@ RenderMsg.prototype.recpsIds = function () {
}
RenderMsg.prototype.voteFormInner = function (expression) {
+ var chan = this.msg.value.content.channel
return [
h('input', {type: 'hidden', name: 'action', value: 'vote'}),
h('input', {type: 'hidden', name: 'recps',
value: this.recpsIds().join(',')}),
+ chan ? h('input', {type: 'hidden', name: 'channel', value: chan}) : '',
h('input', {type: 'hidden', name: 'link', value: this.msg.key}),
h('input', {type: 'hidden', name: 'value', value: 1}),
h('input', {type: 'submit', name: 'expression', value: expression})]