Removed Moderator still has Moderator Flair?

AI-generated summary

A bug was reported where a removed moderator still retained their moderator flair despite no longer being in any flared group. Joshua8600 initially noted the issue on Discourse v3.6.0.beta2-latest, and NateDhaliwal suggested impersonating the user to remove the flair via preferences — though Joshua8600 confirmed the flair dropdown was missing. NateDhaliwal linked prior reports of the same bug and suggested a Rails command workaround. Heliosurge asked to confirm no category moderator groups were involved. Eventually, Joshua8600 resolved it by temporarily adding the user to another flared group, selecting “none” in their preferences (/u/USERNAME/preferences/account), then removing them from the group — confirming the bug occurs when users are removed from flared groups but retain the flair. tobiaseigen agreed it’s a bug needing a fix. southpaw clarified that admins can directly edit the user’s flair to “none” without impersonation and confirmed reproducibility. Finally, zogstrip announced that @nat is fixing the issue via GitHub PR #36842.

Hello.

In a forum I moderate for, a moderator was removed several months ago but they still have the moderator flair icon next to their avatar, and neither me (a moderator) nor a Forum admin can figure out how to actually remove this flair from them.

Our forum is currently on 3.6.0.beta2-latest and was just updated today to that, and the flair still remains.

How can we remove this flair icon from the user?

2 Likes

You can impersonate the user and remove the flair. IIRC when a user leaves a group that has a flair, the flair stays. I believe it can be removed in the user preferences.

My forum admin tried that earlier and the flair dropdown was not there.

1 Like

Seems like this bug has been here for a while, reported here:

You may also want to try the Rails command suggested in User flair remains after user is removed from group.

3 Likes

Just to confirm if you are using category moderator groups that they are not in any of those groups?

Hello, we managed to isolate the cause and fix it a few days ago.

The former moderator was not a member of any flared group. What we had to do was add them to another group with a flair, then from their profile preferences ( /u/USERNAME/preferences/account), change the Flair to “none” and then we removed them from the group.

Seems like a general bug where if you are removed from a group with a flair equipped, the flair stays despite not being a member.

3 Likes

If this is a bug we should fix it.

2 Likes

@Joshua8600,
Thanks for reporting this bug and explaining how you were able to remove the lingering Moderator flair.

I took the liberty of editing your solution to simplify it slightly - you can navigate to the user’s account preferences page as Admin and select none for the user flair without having to impersonate the user, so it’s a little less invasive as a solution that way. :slightly_smiling_face:

I’ve also been able to repro the issue and your solution and we’ll look into getting it resolved.

2 Likes

@nat is fixing this issue with

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

6 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.