aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-05-08 06:22:04 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-05-08 06:22:04 -0400
commit186eda99a11e79b4bbe1f7ecf07085d6f61a5333 (patch)
tree7ee31016d0ca7cdba640a52e828522cf14e99a0b /lib/render-msg.js
parent0cd677474be505a645696c9364d74c8662aeea2b (diff)
downloadpatchfoo-186eda99a11e79b4bbe1f7ecf07085d6f61a5333.tar.gz
patchfoo-186eda99a11e79b4bbe1f7ecf07085d6f61a5333.zip
Handle poll schema change
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index f749328..2f204fc 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -1717,7 +1717,7 @@ RenderMsg.prototype.webRoot = function (cb) {
RenderMsg.prototype.poll = function (cb) {
var self = this
var closeDate = new Date(self.c.closesAt)
- var details = self.c.pollDetails || {}
+ var details = self.c.pollDetails || self.c.details || {}
var choices = u.toArray(details.choices)
return self.wrap(h('div',
h('h3', {innerHTML: unwrapP(self.render.markdown(self.c.title))}),