Commit Graph

20 Commits (18ffd4d925030a3d3a3826bc7156d3a22a44d78e)

Author SHA1 Message Date
Claire 963354978a
Add `Account#unavailable?` and `Account#permanently_unavailable?` aliases ()
Matt Jankowski 0c4e7c06dc
Fix `Rails/FindEach` cop ()
Claire 27e84c0691
Fix duplicate reports being sent when reporting some remote posts ()
Claire c27b82a437
Add `forward_to_domains` parameter to `POST /api/v1/reports` ()
Matt Jankowski cf33028f35
Admin mailer parameterization ()
Eugen Rochko 93e8a15415
Add forwarding of reported replies to servers being replied to ()
trwnh b1a48e05b6
Change Report category to "violation" if rule IDs are provided ()
* Change Report category to "violation" if rule IDs are provided

* Fix LiteralAsCondition

* Add parentheses to conditional statement
Eugen Rochko 44b2ee3485
Add customizable user roles ()
* Add customizable user roles

* Various fixes and improvements

* Add migration for old settings and fix tootctl role management
Claire 1b4054256f
Fix crash when a remote Flag activity mentions a private post ()
* Add tests

* Fix crash when a remote Flag activity mentions a private post
Eugen Rochko 2936f42a14
Add notifications for new reports ()
Eugen Rochko c4d2c39a75
Fix being able to report otherwise inaccessible statuses ()
Eugen Rochko 02b8d63fce
Fix report category not being saved in REST API ()
Eugen Rochko 2f8159baad
Add `category` and `rule_ids` params to `POST /api/v1/reports` ()
Eugen Rochko dde8739020
Fix reports of already suspended accounts being recorded ()
ThibG 1390cc194b
Add indication to admin UI of whether a report has been forwarded ()
* Add indication to admin UI of whether a report has been forwarded

* Rework how forwarded status is displayed

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Eugen Rochko f2b743e715
Refactor all ActivityPub deliveries to be serialized and signed through one concern ()
ThibG a20354a20b Set and store report URIs ()
Fixes 
Naoki Kosaka fae32634b1 Use Contact User as Relay, Report, Subscribe. ()
* Use Contact User as Relay, Report, Subscribe.

* Use Account.representative to fetch contact user.

* Use find_local.

* No reason to use Account.representative in subscribe_service.

* Don't required representative!

* Fallback is included in Account.representative method.
Eugen Rochko c593d6df9c
Add preference for report notification e-mails, skip for duplicates ()
If an unresolved report for the same target account already exists,
no new notification is generated
Eugen Rochko 41a01bec23
Federated reports ()
* Fix : Federated reports

* UI for federated reports

* Add spec for ActivityPub Flag handler

* Add spec for ReportService