gotosocial/internal/api/client/instance
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
..
instance.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
instance_test.go [feature] Add experimental instance-federation-spam-filter option (#2685) 2024-02-27 12:22:05 +00:00
instanceget.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
instancepatch.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
instancepatch_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
instancepeersget.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
instancepeersget_test.go [chore] Use generic pointer function (#2080) 2023-08-07 18:38:11 +01:00
instancerulesget.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00