# 在邮件通知（HTML 版本）中包含投票选项

**URL:** <https://meta.discourse.org/t/include-poll-options-in-email-notification-html-variant/393728>\
**Category:** UX\
**Tags:** email, polls\
**Created:** [2026年一月17日 16:41 UTC](https://meta.discourse.org/t/include-poll-options-in-email-notification-html-variant/393728 "2026-01-17T16:41:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2026年二月13日 13:49 UTC](https://meta.discourse.org/t/include-poll-options-in-email-notification-html-variant/393728/3 "2026-02-13T13:49:17Z")

</div>

早就该这样做了。感谢 @JJde 的提醒 👍

> <https://github.com/discourse/discourse/pull/37812>
>
> 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

---

_[View the full topic](https://meta.discourse.org/t/include-poll-options-in-email-notification-html-variant/393728)._
