Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove unused avatar helper parameters in poll voters (#37620)

Renato Atiliofcd319b8d27e
diff --git a/plugins/poll/assets/javascripts/discourse/components/poll-voters-ranked-choice.gjs b/plugins/poll/assets/javascripts/discourse/components/poll-voters-ranked-choice.gjs
index d369318e365..f27ba4940ed 100644
--- a/plugins/poll/assets/javascripts/discourse/components/poll-voters-ranked-choice.gjs
+++ b/plugins/poll/assets/javascripts/discourse/components/poll-voters-ranked-choice.gjs
@@ -38,13 +38,12 @@ export default class PollVotersComponent extends Component {
{{/if}}
{{#each rank.voters as |voter|}}
<li>
- <a data-user-card={{voter.user.username}}>{{avatar
- voter.user.avatar_template
- "tiny"
- usernamePath=voter.user.username
- namePath=voter.user.name
- title=voter.user.username
- }}</a>
+ <a
+ data-user-card={{voter.user.username}}
+ title={{voter.user.username}}
+ >
+ {{avatar voter.user.avatar_template "tiny"}}
+ </a>
</li>
{{/each}}
</ul>
diff --git a/plugins/poll/assets/javascripts/discourse/components/poll-voters.gjs b/plugins/poll/assets/javascripts/discourse/components/poll-voters.gjs
index b2668ec2bfc..2599b61cc1b 100644
--- a/plugins/poll/assets/javascripts/discourse/components/poll-voters.gjs
+++ b/plugins/poll/assets/javascripts/discourse/components/poll-voters.gjs
@@ -18,13 +18,9 @@ export default class PollVotersComponent extends Component {
{{else}}
{{#each @voters as |user|}}
<li>
- <a data-user-card={{user.username}}>{{avatar
- user.avatar_template
- "tiny"
- usernamePath=user.username
- namePath=user.name
- title=user.username
- }}</a>
+ <a data-user-card={{user.username}} title={{user.username}}>
+ {{avatar user.avatar_template "tiny"}}
+ </a>
</li>
{{/each}}
{{/if}}