0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/plugins/poll/spec
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
..
controllers SECURITY: Fix poll post_id array authorization bypass 2026-03-19 15:21:28 +00:00
fabricators
integration FIX: Respect poll result visibility for ranked-choice outcomes (#40578) 2026-06-04 12:04:38 -03:00
jobs DEV: Prefer RSpec primitives for test setup (#42122) 2026-07-30 11:17:22 +08:00
lib FIX: Don't duplicate the poll title in emails (#42158) 2026-07-30 13:02:09 +02:00
models FIX: match ActiveRecord#reload signature in overrides (#38639) 2026-03-17 09:10:34 +11:00
requests
serializers DEV: Prefer RSpec primitives for test setup (#42122) 2026-07-30 11:17:22 +08:00
system DEV: Prefer RSpec primitives for test setup (#42122) 2026-07-30 11:17:22 +08:00