Expanding the onebox of another topic with two or more polls not possible

I’ve encountered a peculiar behavior of an internal link onebox not expanding, if the topic had two or more polls in it.

Description and steps to reproduce:

  1. Create a topic with following content: Some text (optional), 1st poll, 2nd poll
  2. Create another topic and paste the link from the first topic. => A onebox is created.
  3. Pressing the arrow to expand the onebox shows forever Loading...

Note: If only one poll is present, the onebox expands just fine :ok_hand:

Possibly related:

Hey!

You are right, there was a problem which prevented quoted posts with more than one poll to be loaded. I fixed that in:

https://github.com/discourse/discourse/pull/10456

Thank you for the report! :blush:

4 Likes