gotosocial/web
Vyr Cossont fd837776e2
[feature] Implement Mastodon-compatible roles (#3136)
* Implement Mastodon-compatible roles

- `Account.role` should only be available through verify_credentials for checking current user's permissions
- `Account.role` now carries a Mastodon-compatible permissions bitmap and a marker for whether it should be shown to the public
- `Account.roles` added for *public* display roles (undocumented but stable since Mastodon 4.1)
- Web template now uses only public display roles (no user-visible change here, we already special-cased the `user` role)

* Handle verify_credentials case for default role

* Update JSON exact-match tests

* Address review comments

* Add blocks bit to admin permissions bitmap
2024-07-31 09:26:09 -07:00
..
assets [feature] Allow user to set "bot" flag; show bot icon on profile (#3135) 2024-07-24 10:40:56 +02:00
source [feature] Allow users to export data via the settings panel (#3140) 2024-07-31 15:03:34 +01:00
template [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00