# Viewing post from "group" Topics or Posts lists shows \`0\` (zero) voters

**URL:** https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296
**Category:** Bug
**Tags:** polls
**Created:** [April 9, 2016, 2:36pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296 "2016-04-09T14:36:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [April 9, 2016, 2:36pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/1 "2016-04-09T14:36:01Z")

</div>

Problem can be seen on both of the following pages:

- [https://meta.discourse.org/groups/team/topics](https://meta.discourse.org/groups/team/topics)
- [Discourse team - Discourse Meta](https://meta.discourse.org/groups/team)

For the following topic:

> [@Poll: Which forum importer would you most like to see a tutorial for?](https://meta.discourse.org/t/poll-which-forum-importer-would-you-most-like-to-see-a-tutorial-for/42231):
>
> Update: The [votes are in](https://meta.discourse.org/t/poll-which-forum-importer-would-you-most-like-to-see-a-tutorial-for/42231/22) and we’re now looking for technical writers looking to do some freelance work. Continuing the discussion from [Easier forum migration to Discourse](https://meta.discourse.org/t/easier-forum-migration-to-discourse/42143/8): The plan is to pay 2-3 technical writers in our community to each write a high quality tutorial for one of [Discourse’s import scripts](https://github.com/discourse/discourse/tree/master/script/import_scripts). I’m putting up this poll so our users can vote for whichever tutorial they think should be written first. Some of the forums listed already have a dedicated tutorial, but votes on these ar…

 ![](https://global.discourse-cdn.com/meta/original/3X/b/d/bd97248f6fb9391e714b1ccc93c6d639fcee660a.png)

Where the topic actually shows 27 votes currently:

 ![](https://global.discourse-cdn.com/meta/original/3X/6/b/6b8b1ee3551ec8d0d1595dc68de3f70424e5cf73.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 10, 2016, 11:43pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/2 "2016-04-10T23:43:16Z")

</div>

@eviltrout can you have a look at this, should the component rendering this be inline with post stream component?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [April 11, 2016, 5:50pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/3 "2016-04-11T17:50:57Z")

</div>

The issue here is the plugin depends on it being inside the post stream with the widget framework. Since it is not, it can’t work properly as it doesn’t have access to all the same stuff, so it is disabled using the `onlyStream: true` flag when initialized.

I can think of two solutions here:

1. We adjust other streams (group / user) to use vdom too
2. We have the option to render something more clear that the poll is not working.

Neither are super attractive to me, to be honest.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [April 11, 2016, 6:31pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/4 "2016-04-11T18:31:48Z")

</div>

> [@eviltrout](#):
>
> We have the option to render something more clear that the poll is not working.

I don’t really understand what you mean by this option. Maybe I’m suggesting the same thing here but, another solution might be:

Don’t render full poll anywhere other than the actual topic. So on the group page, just show something like “Go to topic to see poll” inside the poll styling.

I wonder, do polls show up in embedded comments in a WordPress or Jekyll blog? I don’t have an easy way to test that.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [April 11, 2016, 6:42pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/5 "2016-04-11T18:42:10Z")

</div>

Exactly, my choice of words was poor. But the idea is have a second code path that can render something different when the poll can’t be mounted. A message like “Click here to see the poll” might work.

I would be very surprised if polls worked when embedded, since they’d be missing the same client side controls.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 11, 2016, 9:09pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/6 "2016-04-11T21:09:17Z")

</div>

Maybe we simply use the same component that does the truncated rendering that we use on the user page? Also not ideal but at least renders correctly.

---

<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: [April 11, 2016, 10:46pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/7 "2016-04-11T22:46:33Z")

</div>

Yeah render a “click to see poll” as we do in email – email summaries have the same problem, you can’t exactly render a live poll in an email..

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [April 13, 2016, 5:27pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/8 "2016-04-13T17:27:43Z")

</div>

I added the ability for a plugin to “reduce” the cooked content via an event. The same event is used to strip polls from emails as well as on the group page:

[https://github.com/discourse/discourse/commit/e91379916b739ea80178ac1e00b9b2f4b0dff84c](https://github.com/discourse/discourse/commit/e91379916b739ea80178ac1e00b9b2f4b0dff84c)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [April 13, 2016, 6:39pm UTC](https://meta.discourse.org/t/viewing-post-from-group-topics-or-posts-lists-shows-0-zero-voters/42296/9 "2016-04-13T18:39:38Z")

</div>


