main ← poll-options-in-email-notifications
opened 01:48PM - 13 Feb 26 UTC
Previously, the HTML variant of email notifications replaced the entire poll wit…h a "Click to view the poll" link, while the plain-text variant included all the poll options. This meant the HTML email contained less information than its plain-text counterpart.
Now the `reduce_cooked` callback preserves the poll title and options list, strips the interactive parts (vote counts, buttons) and `data-poll-option-id` attributes, and still appends the link to vote.
This works for all poll types (regular, multiple, number, ranked_choice) since they all share the same `.poll-container > ul/ol > li` structure.
https://meta.discourse.org/t/393728