Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Serialize local account role via API, and show it via web view #1045

Merged
merged 7 commits into from
Nov 15, 2022

Conversation

tsmethurst
Copy link
Contributor

Local account roles will be one of user, moderator, or admin. For remote accounts, role will not be serialized in the json.

The role of an account will now be shown on the web view of that account's profile (see screenshots below).

I don't think this will trip up clients that use the Mastodon API, but we'll have to see. We might need to make this a config option for optimum masto API compatibility, but I hope not.

Screenshot from 2022-11-14 13-38-06
Screenshot from 2022-11-14 13-37-56
Screenshot from 2022-11-14 13-37-30

Closes #814
Closes #815

@NyaaaWhatsUpDoc
Copy link
Member

Backend changes look good :), my only critique is a UI thing, in that I think we should only display non-default roles. i.e. most users' profile pages appear as they do currently (pre-PR), but only moderators and admins get a role tag on their profile.

@tsmethurst
Copy link
Contributor Author

we should only display non-default roles

good idea... will change it

@tsmethurst tsmethurst merged commit a39a664 into main Nov 15, 2022
@tsmethurst tsmethurst deleted the account_role_serialization branch November 15, 2022 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[frontend] Display admin role on public profile [feature] admin status in Account response
3 participants