Group avatar flair doesn't apply to existing members

AI-generated summary

The issue concerns a bug where group avatar flair does not apply to existing members when a flair is added to a group after its creation, even if the “Set Group as Primary” setting is enabled. itsbhanusharma reports that while new members receive the flair, existing members do not, despite the setting functioning correctly for group titles. IAmGav confirms that flair updates only affect members with the group set as primary, and the setting does not retroactively apply to existing members. itsbhanusharma notes this behavior changed recently, previously working as expected. A workaround is shared by nathank, and vinothkannans confirms a fix has been implemented in a pull request. itsbhanusharma verifies the fix works by toggling the “Set Group as Primary” setting, applying the flair to all members.

Over the past few days I’ve experienced this on two forums. When a group doesn’t have a flair upon creation and a flair is added at a later point of time, the existing members of the group don’t get the flair on their profile.

Set group as primary setting has no effect. I have to manually assign the group as primary for each existing user for the flair to show up or else it doesn’t show up.

On the other hand, any new users added to the group do get the flair. Only existing members are affected.

1 Like

when you update an Avatar Flair Image, it only updates the people that have that group set as primary.

1 Like

But I have the setting “Set Group as Primary” enabled in the group setting and it sadly has no effect for existing group members.

It does gives them the title properly when the setting is enabled (and removes it when setting is disabled) but flair is not applied.

1 Like

Yes, this only works for newly added members.

When no title is set, it set them the group title, but if a title is set already, then it wont update the title.

Have you tried refreshing the page after changing the icon ?

1 Like

Yes, I have tried refreshing the page and No, it doesn’t make a difference.

The thing is that the setting used to work differently in past. When I used to enable the “Set Group as Primary”, it used to automatically set it as primary for all the existing and new users. Now that’s broken in a way where the Group title of the primary group is applied correctly to all the members but not the flair. This seems to be a recent change that broke the setting. I remember it working correctly as expected back in Jan/Feb this year when I set up the groups on my forums.

3 Likes

I’ve posted a way you can force group members to use the group avatar now that primary group and avatar seem to be uncoupled:

2 Likes

I’ll definitely try it out once I’m at my desk. Thanks for the solution @nathank

1 Like

https://github.com/discourse/discourse/pull/14762

I added a fix for this issue in the above PR.

5 Likes

Thanks a ton @vinothkannans I’ve just checked and your fix works flawlessly. If the setting set_group_as_primary is already enabled, just disable and re-enable it for the group and the flairs would be set for all the group members.

6 Likes