pleroma issueshttps://git.pleroma.social/pleroma/pleroma/-/issues2022-09-04T02:27:02Zhttps://git.pleroma.social/pleroma/pleroma/-/issues/2929Unexpected behaviour in admin api when user chooses "invites" as nickname2022-09-04T02:27:02ZIljaUnexpected behaviour in admin api when user chooses "invites" as nicknameIn the admin api `/api/v1/pleroma/admin` we have `GET users/:nickname`. But before that we have `GET users/invites`.
So if someone would take the name `invites`, I believe admin api's `users/:nickname` won't work for that user. At first...In the admin api `/api/v1/pleroma/admin` we have `GET users/:nickname`. But before that we have `GET users/invites`.
So if someone would take the name `invites`, I believe admin api's `users/:nickname` won't work for that user. At first glance, this is the only one I see, but there may be others, idk.
The easiest work-around is probably to add it to `restricted_nicknames`. But really we should probably design our api's a bit better so such collisions don't accidentally happen. This isn't something I really have experience in, though, so may be easier said than done.