aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-10 10:22:35 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-10 10:40:25 -0500
commit66a1c44a08391be6697a378db3c0b953d2fb766d (patch)
tree5cfb805499235a5f6ebb415fca071c1071641cf3 /lib/render-msg.js
parent552d2797bbc61a5a2397d43b03e358f7a9004590 (diff)
downloadpatchfoo-66a1c44a08391be6697a378db3c0b953d2fb766d.tar.gz
patchfoo-66a1c44a08391be6697a378db3c0b953d2fb766d.zip
Publish votes more like other messages
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index c99b206..fb4b211 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -108,7 +108,7 @@ RenderMsg.prototype.wrap = function (content, cb) {
{href: this.toUrl(this.msg.key)}, this.msg.key)),
channel ? [' ', h('a', {href: this.toUrl(channel)}, channel)] : '')),
h('td.msg-right', this.msg.key ?
- h('form', {method: 'post', action: '/vote'},
+ h('form', {method: 'post', action: ''},
this.msg.rel ? [this.msg.rel, ' '] : '',
h('a', {href: this.toUrl(this.msg.key) + '?raw'}, 'raw'), ' ',
this.voteFormInner('dig')
@@ -142,7 +142,7 @@ RenderMsg.prototype.wrapMini = function (content, cb) {
this.issues(done()),
content),
h('td.msg-right', this.msg.key ?
- h('form', {method: 'post', action: '/vote'},
+ h('form', {method: 'post', action: ''},
this.msg.rel ? [this.msg.rel, ' '] : '',
h('a', {href: this.toUrl(this.msg.key) + '?raw'}, 'raw'), ' ',
this.voteFormInner('dig')
@@ -170,6 +170,7 @@ RenderMsg.prototype.recpsIds = function () {
RenderMsg.prototype.voteFormInner = function (expression) {
return [
+ h('input', {type: 'hidden', name: 'action', value: 'vote'}),
h('input', {type: 'hidden', name: 'recps',
value: this.recpsIds().join(',')}),
h('input', {type: 'hidden', name: 'link', value: this.msg.key}),