# CORREÇÃO: Exibir flair de userGroup em autoGroupFlairForUser

**URL:** <https://meta.discourse.org/t/fix-show-usergroup-flair-in-autogroupflairforuser/416277>\
**Category:** Bug\
**Created:** [1 Novembro , 2026 03:54 UTC](https://meta.discourse.org/t/fix-show-usergroup-flair-in-autogroupflairforuser/416277 "2026-11-01T03:54:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![small-lovely-cat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/small-lovely-cat/32/579066_2.png) [@small-lovely-cat](https://meta.discourse.org/u/small-lovely-cat)\
**Post date:** [1 Novembro , 2026 03:54 UTC](https://meta.discourse.org/t/fix-show-usergroup-flair-in-autogroupflairforuser/416277/1 "2026-11-01T03:54:15Z")

</div>

Existe um problema no avatar-flair. A função não considera o flair do userGroup e recorre ao autoGroup flair mesmo quando o usuário definiu um flair de userGroup.

Isso faz com que o flair seja exibido incorretamente em lugares como o chat. Por exemplo, defino meu flair como um flair de grupo, mas o flair no meu DM mostra o do meu Trust Level, sem atualização.

Este commit corrige isso ao considerar primeiro o flair selecionado pelo usuário, mantendo o autoGroupFlair como alternativa.

> <https://github.com/discourse/discourse/pull/45426>
>
> There exists a problem in avatar-flair. The function fails to consider userGroup… flair, and will fallback to autoGroup flair even when the user set a userGroup flair.
> 
> This will cause the flair shown incorrectly in places like chat, e.g., I set my flair to a group flair, but the flair of my DM will be the one of my Trust Level without a refresh.
> 
> This commit fix this by considering user selected flair first, while keeping autoGroupFlair as a fallback.
