Show admin or moderator box if user has that role #1523

Closed
andrewzah wants to merge 1 commit from gitlab-mr-iid-250 into develop
Member

The user card now shows if they are an admin or moderator.
Admin supercedes moderator, and only one is shown.

box_with_admin
box_with_moderator

Closes #94

This MR depends on pleroma/pleroma#3529, in order to get the new is_admin and is_moderator JSON fields.

The user card now shows if they are an `admin` or `moderator`. Admin supercedes moderator, and only one is shown. ![box_with_admin](/attachments/d1cd9e90-8c82-44e5-b739-9ae8685856a1) ![box_with_moderator](/attachments/99fdd61d-5419-48be-9d53-1af5d28f3a7a) Closes #94 This MR depends on https://git.pleroma.social/pleroma/pleroma/pulls/3529, in order to get the new `is_admin` and `is_moderator` JSON fields.
Owner

Code itself looks fine, but is this something that should be configurable? I can imagine not every admin/moderator wants to advertise this fact.

Code itself looks fine, but is this something that should be configurable? I can imagine not every admin/moderator wants to advertise this fact.
Author
Member

Yeah it should probably be configurable somewhere. Either in pleroma's config or on a per-user basis otherwise.

It's been 7 months since I've looked at this codebase; feel free to take ownership of this code. I don't have the time right now to work on it.

Yeah it should probably be configurable somewhere. Either in pleroma's config or on a per-user basis otherwise. It's been 7 months since I've looked at this codebase; feel free to take ownership of this code. I don't have the time right now to work on it.
Owner

Can we revive this and make it display the different tags a user has?

Can we revive this and make it display the different tags a user has?
Owner

sure

sure
Owner

This depends on nonexistent API. BE MR it references didn't get merged in, and the one that did get merged in seem to be missing is_admin and is_moderator fields.

This depends on nonexistent API. BE MR it references didn't get merged in, and the one that did get merged in seem to be missing `is_admin` and `is_moderator` fields.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!1523
No description provided.