Anonymize user quotes keeps username

Not sure if this is going to suck or not (I feel like it probably will).

I recently anonymized a user at their request. Everything appeared to work as intended with the exception of the retention of the username in all replies where they were quoted. :frowning:

Is this expected behavior? It seems like it’ll require some work to really scrub the username association with quotes, but it also feels like it should be done for consistency?

2 Likes

It has always worked this way, the replace would be very expensive.

1 Like

That’s what I figured. :grimacing:

If you are interested in globally replacing to anonymize the quotes in other people’s posts for that user, perhaps @techAPJ can write up how to do that at some point.

3 Likes

I did some testing on this a while ago, though I never got as far as to dig into the code involved.

Rebaking old posts will result in the anonymized name being displayed.
But quotes are not the only place where prior names will display. They also remain in @ mentions and Notifications.

3 Likes

@gerhard I just saw your post over on: https://meta.discourse.org/t/ability-to-merge-users/9220/102?u=mattbr

With the release of 2.0.0.beta10 does anonymizing users also update their mentions, quotes and avatars as well?

2 Likes

Yes, it does. See also Anonymizing Users in Discourse

7 Likes