User.deactivate cache issue or race condition?
I was playing with Pleroma.User.deactivate/2 in iex and appear to have found an edge case where I can deactivate and then re-activate an account, but my instance thinks the account is still deactivated. The database and cachex entry say it's not deactivated, but AdminFE says it's deactivated and cannot successfully re-activate it. It also didn't seem to work from a mix task with pleroma.user toggle_activated
. I had to go to the user account in PleromaFE and use the moderation tools there to activate and it only worked on the second try.