Commit Graph

12 Commits (898dacf83eaaec8ba02d4e44dd9901521d79a898)

Author SHA1 Message Date
Eugen Rochko a38a452481
Add unread indicator to conversations ()
ThibG 25744d43b0 Ensure only toots from the reported users are reported ()
Eugen Rochko f0fff3eb10
Support min_id-based pagination in REST API ()
* Allow min_id pagination in Feed#get

* Add min_id pagination to home and list timeline APIs

* Add min_id pagination to account statuses, public and tag APIs

* Remove unused stub in reports API

* Use min_id pagination in notifications, favourites, and fix order

* Fix HomeFeed#from_database not using paginate_by_id
Eugen Rochko 1f6ed4f86a
Add more granular OAuth scopes ()
* Add more granular OAuth scopes

* Add human-readable descriptions of the new scopes

* Ensure new scopes look good on the app UI

* Add tests

* Group scopes in screen and color-code dangerous ones

* Fix wrong extra scope
Eugen Rochko 41a01bec23
Federated reports ()
* Fix : Federated reports

* UI for federated reports

* Add spec for ActivityPub Flag handler

* Add spec for ReportService
Eugen Rochko 7bb8b0b2fc
Add moderator role and add pundit policies for admin actions ()
* Add moderator role and add pundit policies for admin actions

* Add rake task for turning user into mod and revoking it again

* Fix handling of unauthorized exception

* Deliver new report e-mails to staff, not just admins

* Add promote/demote to admin UI, hide some actions conditionally

* Fix unused i18n
Eugen Rochko 8b2cad5637 Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl ()
Eugen Rochko 42b8220632 Fix - Send e-mail notifications to admins about new reports ()
Matt Jankowski 73540ffe6b Clean up for api/base controller ()
* Move ApiController to Api/BaseController

* API controllers inherit from Api::BaseController

* Add coverage for various error cases in api/base controller
Matt Jankowski 7c6e02aaf3 Refactor api/v1/reports controller ()
Eugen Rochko 4c53af64f0 Fix ActionController::Parameters in API issue
Eugen Rochko 3b81baaaaf Adding POST /api/v1/reports API, and a UI for submitting reports