Commit Graph

10 Commits (b922ad7a1b4bc8d968d0df2c7f307d4fec53435d)

Author SHA1 Message Date
Claire 343e1fe8e9
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
Claire 21a1a8ee88
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
Claire c2170991c7
Fix reblogs being discarded after the reblogged status ()
Eugen Rochko 07cc201acc
Fix using wrong policy on status-related actions in admin UI ()
Eugen Rochko c4d2c39a75
Fix being able to report otherwise inaccessible statuses ()
Eugen Rochko ee8d4dd056
Fix moderator account leak in status edit history ()
Eugen Rochko 25d3dc4373
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
Eugen Rochko d0fcf07436
Change actions in reports to require only one click ()
Claire 03d59340da
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.
Eugen Rochko 14f436c457
Add notifications for statuses deleted by moderators ()