# Poll posts may not survive approval queue?

**URL:** https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278
**Category:** Bug
**Created:** [2017年一月24日 16:43 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278 "2017-01-24T16:43:51Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年一月24日 16:43 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/1 "2017-01-24T16:43:51Z")

</div>

So I was looking to play around with CSS on polls, but creating a poll on Try resulted in a broken poll:  
[https://try.discourse.org/t/testing-poll-css/600](https://try.discourse.org/t/testing-poll-css/600)

Here is what I attempted to enter (note that it works OK here on Meta):

```plaintext
[poll type=multiple min=1 max=4]
* A
* B
* C
* D
[/poll]

```

_Poll ([view on site](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/1))_

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2017年一月24日 16:57 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/2 "2017-01-24T16:57:55Z")

</div>

I created exact same poll on try and it’s working as expected: [https://try.discourse.org/t/polls-are-broken/601](https://try.discourse.org/t/polls-are-broken/601)

I wonder if polls break when the post is in approval queue? 🤔

(Joshua’s poll topic on try was in approval queue and I approved it)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年一月24日 16:59 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/3 "2017-01-24T16:59:16Z")

</div>

Does rebuilding the HTML fix it?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2017年一月24日 16:59 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/4 "2017-01-24T16:59:45Z")

</div>

Nope, tried that already.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年一月24日 23:35 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/5 "2017-01-24T23:35:17Z")

</div>

If this is an approval issue it is ultra low priority

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年一月25日 01:04 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/6 "2017-01-25T01:04:23Z")

</div>

Are we sure this is an approval issue? Arpit seemed to be thinking out loud, not confirming…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年一月25日 02:21 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/7 "2017-01-25T02:21:32Z")

</div>

Meta and try run the same code.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2017年一月25日 02:26 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/8 "2017-01-25T02:26:11Z")

</div>

Understood. Polls seem to be working fine here and on try at the moment - I’m concerned if the issue was approval, or something else (TL0, network, etc.)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2017年一月25日 09:19 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/9 "2017-01-25T09:19:50Z")

</div>

@jomaxro I managed to repro this locally and I think you’re right that posts with a poll in the approval will result in the poll being permanently broken even if we try to rebake it. I’m looking into the root cause now.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2017年一月26日 05:33 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/10 "2017-01-26T05:33:24Z")

</div>

PR in

[https://github.com/discourse/discourse/pull/4675](https://github.com/discourse/discourse/pull/4675)

Good catch @jomaxro

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年一月29日 12:18 UTC](https://meta.discourse.org/t/poll-posts-may-not-survive-approval-queue/56278/11 "2017-01-29T12:18:24Z")

</div>


