Skip to content

Improve the user card for deactivated users

Ilja requested to merge ilja/pleroma-fe:fixes_for_deactivated_profile into develop

It became clear in pleroma#2790 (closed) that it's not clear from the profile page that a user is deactivated. Here I try to improve that a bit.

  • Add "Deactivated" label to user card for deactivated users
  • Deactivate the buttons "Follow", "Mute" and "Mention"
  • I fixed a bug: When activating the profile, the card changes => ok. When deactivating, I need to refresh the page to see the changes. This is fixed in src/modules/users.js line 396. I'm just not sure if this is the correct way to do it.

Extra notes

  • Mods can also see the profile (normal or unauthenticated users can't), but they can't see if the user is deactivated or not because BE doesn't tell them... I didn't want to work around it in this MR because I consider it a bug in the BE. This may or may not be fixed with pleroma!3480 (merged)
  • This is related to pleroma#2313 where the idea was to not send deactivated profiles to Pleroma-fe at all (while here I instead make the FE handle it better for those who may see them).

Activated:
image

Deactivated:
image

Edited by Ilja

Merge request reports

Loading