0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 18:09:26 +08:00
discourse/plugins/poll/spec/lib
Régis Hanol 4907973cf7
FIX: Don't duplicate the poll title in emails (#42158)
Previously, the `reduce_cooked` handler appended the `.poll-title`
element and then the inner HTML of `.poll-container`. Since the markdown
rule nests the title inside that container, every poll's title showed up
twice in HTML emails — and, since they share the same code path, in
digests, embedded comments and RSS feeds too.

This change drops the redundant append, leaving the container as the
single source of the poll's content, and tightens the email specs to
assert on the whole reduced fragment rather than with `include`, which a
duplicate satisfies just as well as a single copy.

https://meta.discourse.org/t/408875
2026-07-30 13:02:09 +02:00
..
new_post_manager_spec.rb
poll_spec.rb FIX: Display poll voters in the order they voted (#41972) 2026-07-24 15:35:15 +02:00
polls_updater_spec.rb DEV: Prefer RSpec primitives for test setup (#42122) 2026-07-30 11:17:22 +08:00
polls_validator_spec.rb SECURITY: Uncontrolled Resource Consumption in Number Poll Generation (#41141) 2026-06-24 15:20:12 +10:00
pretty_text_spec.rb FIX: Don't duplicate the poll title in emails (#42158) 2026-07-30 13:02:09 +02:00
ranked_choice_spec.rb
search_spec.rb