GoToSocial/internal/api/client/statuses
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
..
status_test.go
status.go
statusbookmark_test.go
statusbookmark.go
statusboost_test.go [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
statusboost.go
statusboostedby_test.go
statusboostedby.go
statuscontext.go [feature/frontend] Better visual separation between "main" thread and "replies" (#3093) 2024-07-12 20:36:03 +02:00
statuscreate_test.go [chore] Add interaction policy gtsmodels (#3075) 2024-07-11 15:44:29 +01:00
statuscreate.go [chore] Add interaction policy gtsmodels (#3075) 2024-07-11 15:44:29 +01:00
statusdelete_test.go
statusdelete.go
statusfave_test.go [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
statusfave.go
statusfavedby_test.go
statusfavedby.go
statusget_test.go
statusget.go
statushistory_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
statushistory.go
statusmute_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
statusmute.go
statuspin_test.go [chore] Add interaction policy gtsmodels (#3075) 2024-07-11 15:44:29 +01:00
statuspin.go
statussource_test.go
statussource.go
statusunbookmark_test.go
statusunbookmark.go
statusunboost.go
statusunfave_test.go
statusunfave.go
statusunmute.go
statusunpin_test.go
statusunpin.go