# Jobs::UserEmail 中的 ActionView::Template::Error

**URL:** https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420
**Category:** Bug
**Tags:** email
**Created:** [2026年二月7日 01:01 UTC](https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420 "2026-02-07T01:01:01Z")
**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年二月10日 08:02 UTC](https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420/3 "2026-02-10T08:02:15Z")

</div>

哈哈！说得好 😛

我们将多个回复合并为一个通知，并覆盖了“用户名”🤦‍♂️

> <https://github.com/discourse/discourse/pull/37659>
>
> When multiple replies are collapsed into a single notification, \`PostAlerter\` se…ts \`display\_username\` to a translated reply count (e.g., "7 réponses") for use in the notification dropdown UI. The \`original\_username\` field always holds the actual poster's username.
> 
> However, if \`original\_username\` is ever missing from the notification data, \`notification\_email\` falls back to \`display\_username\`, which causes the reply count string to be used as the email sender username. This leads to errors during email rendering.
> 
> This updates the fallback chain in \`notification\_email\` to prefer \`post.user.username\` over \`display\_username\`, ensuring a real username is always used even when \`original\_username\` is absent.
> 
> https://meta.discourse.org/t//395420

---

_[View the full topic](https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420)._
