Commit Graph

12 Commits (aeae2ebc0159bc2caadfc52313545f8e69c035e7)

Author SHA1 Message Date
Claire bd83df7fd1 Fix moderator rights inconsistencies () 2023-09-06 16:40:19 +02:00
Claire 96f51d6c1f Fix “Scoped order is ignored, it's forced to be batch order.” warnings () 2023-09-05 15:37:23 +02:00
Claire 592fe1a3bd Add confirmation screen when handling reports ()
* Add confirmation screen on moderation actions

* Add flash notice when a report has been processed

* Refactor tests

* Add tests
2023-01-18 16:40:09 +01:00
Claire 64952cef52 Fix crash when marking statuses as sensitive while some statuses are deleted ()
* Do not offer to mark statuses as sensitive if there is no undeleted status with media attachments

* Fix crash when marking statuses as sensitive while some statuses are deleted

Fixes 

* Fix multiple strikes being created for a single report when selecting “Mark as sensitive”

* Add tests
2023-01-13 10:46:52 +01:00
Claire 4b0e72b2b7 Fix reblogs being discarded after the reblogged status () 2022-11-04 16:31:44 +01:00
Eugen Rochko bf1bc15575 Fix using wrong policy on status-related actions in admin UI () 2022-10-28 00:48:30 +02:00
Eugen Rochko 4bb50e32e4 Fix being able to report otherwise inaccessible statuses () 2022-05-26 22:08:02 +02:00
Eugen Rochko cd06775130 Fix moderator account leak in status edit history () 2022-03-12 08:23:03 +01:00
Eugen Rochko b25b703cce Add ability to mark statuses as sensitive from reports in admin UI ()
* Add ability to mark statuses as sensitive from reports in admin UI

* Allow mark as sensitive action on statuses with preview cards
2022-03-01 22:20:29 +01:00
Eugen Rochko 9b42aad433 Change actions in reports to require only one click () 2022-02-11 21:51:57 +01:00
Claire 33ea1c9008 Fix Sidekiq warnings about JSON serialization ()
* Fix Sidekiq warnings about JSON serialization

This occurs on every symbol argument we pass, and every symbol key in hashes,
because Sidekiq expects strings instead.

See https://github.com/mperham/sidekiq/pull/5071

We do not need to change how workers parse their arguments because this has
not changed and we were already converting to symbols adequately or using
`with_indifferent_access`.

* Set Sidekiq to raise on unsafe arguments in test mode

In order to more easily catch issues that would produce warnings in production
code.
2022-01-28 00:43:56 +01:00
Eugen Rochko 2fb76550a9 Add notifications for statuses deleted by moderators () 2022-01-17 09:41:33 +01:00