diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-05-08 06:22:04 -0400 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-05-08 06:22:04 -0400 |
commit | 186eda99a11e79b4bbe1f7ecf07085d6f61a5333 (patch) | |
tree | 7ee31016d0ca7cdba640a52e828522cf14e99a0b /lib/render-msg.js | |
parent | 0cd677474be505a645696c9364d74c8662aeea2b (diff) | |
download | patchfoo-186eda99a11e79b4bbe1f7ecf07085d6f61a5333.tar.gz patchfoo-186eda99a11e79b4bbe1f7ecf07085d6f61a5333.zip |
Handle poll schema change
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 2 |
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))}), |