Commit Graph

17 Commits (577520b6376f5ad14aa343a2aba881e7e1ef1897)

Author SHA1 Message Date
Daniel M Brasil d9c6f70cc6
Fix `ArgumentError` in `/api/v1/admin/accounts/:id/action` ()
Nick Schonning 2177daeae9
Autofix Rubocop Style/RedundantBegin ()
Eugen Rochko 40c7f3e830
Fix account action type validation ()
* Fix account action type validation

Fix 

* Fix 

* Fix code style issues
Claire e5997a1956
Fix warning an account outside of a report closing all reports for that account ()
* Fix warning an account outside of a report closing all reports for that account

* Make it clear what actions solve other reports

* Revert "Make it clear what actions solve other reports"

This reverts commit ad006de821.
Claire a53003c6f1
Fix account warnings not being recorded in audit log ()
* Fix account warnings not being recorded in audit log

Fixes 

* Only record warnings if they are not associated to another action
Eugen Rochko eebafe24a8
Fix statuses not being referenced in strike when category is spam ()
Eugen Rochko 14f436c457
Add notifications for statuses deleted by moderators ()
Eugen Rochko 3134691948
Add support for reversible suspensions through ActivityPub ()
Takeshi Umeda d6fe0c94ca
Add account sensitized ()
* Add account sensitized

* Fix i18n normalize

* Fix description and spec

* Fix spec

* Fix wording
Eugen Rochko ed099d8bdc
Change account suspensions to be reversible by default ()
Eugen Rochko 42c4322ce7
Fix reported statuses not being included in warning e-mail ()
ThibG 61f35c1a8a
Fix reported accounts not being whitelisted when resolving a spamcheck report ()
Eugen Rochko b5f7e12817
Remove auto-silence behaviour from spam check ()
Fix 
Eugen Rochko c5d37f18cb
Change deletes to preserve soft-deleted statuses in unresolved reports ()
Change all account actions except "none" to resolve all unresolved reports

Refactor `SuspendAccountService` to be more readable
Eugen Rochko 73ca0bb925
Add option to include reported statuses in warning e-mail ()
Eugen Rochko ae003d54f9
Fix option to send e-mail notification about account action always being true ()
Eugen Rochko 3c033c4352
Add moderation warnings ()
* Add moderation warnings

Replace individual routes for disabling, silencing, and suspending
a user, as well as the report update route, with a unified account
action controller that allows you to select an action (none,
disable, silence, suspend) as well as whether it should generate an
e-mail notification with optional custom text. That notification,
with the optional custom text, is saved as a warning.

Additionally, there are warning presets you can configure to save
time when performing the above.

* Use Account#local_username_and_domain