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


(Dean Taylor) #1

Problem can be seen on both of the following pages:

For the following topic:

Where the topic actually shows 27 votes currently:

Help us test the new header code!
(Sam Saffron) #2

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

(Robin Ward) #3

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.

(Erlend Sogge Heggen) #4

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.

(Robin Ward) #5

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.

(Sam Saffron) #6

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.

(Jeff Atwood) #7

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…

(Robin Ward) #8

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:

(Robin Ward) #9