mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 18:20:16 +08:00
Previously, the HTML variant of email notifications replaced the entire poll with 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 |
||
|---|---|---|
| .. | ||
| new_post_manager_spec.rb | ||
| poll_spec.rb | ||
| polls_updater_spec.rb | ||
| polls_validator_spec.rb | ||
| pretty_text_spec.rb | ||
| ranked_choice_spec.rb | ||
| search_spec.rb | ||