# خطأ في ActionView::Template::Error في Jobs::UserEmail

**URL:** https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420
**Category:** Bug
**Tags:** email
**Created:** [7 فبراير 2026، 1:01ص UTC](https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420 "2026-02-07T01:01:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [7 فبراير 2026، 1:01ص UTC](https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420/1 "2026-02-07T01:01:02Z")

</div>

في Discourse [v2026.2.0-latest +184](https://github.com/discourse/discourse/commit/e89b618aa266e213d3d0bf4c4aa1496bb56f9c09)، تظهر العديد من `Jobs::UserEmail` التي يعود تاريخها إلى ستة أيام مضت في SideKiq مع `"type"=>"user_posted"`:

```plaintext
Jobs::HandledExceptionWrapper: Wrapped ActionView::Template::Error: wrong number of arguments (given 1, expected 0)

```

من بين الوسائط، هذه الوسيطة مشبوهة:

```plaintext
"display_username"=>"7 réponses",

```

بالتأكيد لا تبدو _سبع ردود_ كاسم مستخدم للعرض. قد تكون وسيطة تسللت. (تُظهر أخطاء أخرى مماثلة عدد ردود مختلفًا كاسم مستخدم للعرض).

---

<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: [10 فبراير 2026، 8: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

---

<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: [14 فبراير 2026، 7:00ص UTC](https://meta.discourse.org/t/actionview-error-in-jobs-useremail/395420/5 "2026-02-14T07:00:36Z")

</div>

تم إغلاق هذا الموضوع تلقائيًا بعد يومين. لم يعد الردود الجديدة مسموحًا بها.
