From 186eda99a11e79b4bbe1f7ecf07085d6f61a5333 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 8 May 2018 06:22:04 -0400 Subject: Handle poll schema change --- lib/render-msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/render-msg.js') 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))}), -- cgit v1.2.3