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 [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
status.go [feature] Status source endpoint (#2848) 2024-04-17 13:49:20 +01:00
statusbookmark_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusbookmark.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
statusboost_test.go [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
statusboost.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
statusboostedby_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusboostedby.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
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 [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00
statusdelete.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusfave_test.go [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
statusfave.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
statusfavedby_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusfavedby.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusget_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusget.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statushistory_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
statushistory.go [feature] Stub status history endpoint (#2847) 2024-04-17 13:06:49 +01:00
statusmute_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
statusmute.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
statuspin_test.go [chore] Add interaction policy gtsmodels (#3075) 2024-07-11 15:44:29 +01:00
statuspin.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
statussource_test.go [bugfix] Fix incorrect field name for status source, add helpful message (#2854) 2024-04-18 13:22:55 +02:00
statussource.go [feature] Status source endpoint (#2848) 2024-04-17 13:49:20 +01:00
statusunbookmark_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusunbookmark.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusunboost.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusunfave_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusunfave.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
statusunmute.go [feature] Status thread mute/unmute functionality (#2278) 2023-10-25 15:04:53 +01:00
statusunpin_test.go [feature] add support for polls + receiving federated status edits (#2330) 2023-11-08 14:32:17 +00:00
statusunpin.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00