mastodon/lib/mastodon
Claire 4ac78e2a06
Add feature to automatically delete old toots (#16529)
* Add account statuses cleanup policy model

* Record last inspected toot to delete to speed up successive calls to statuses_to_delete

* Add service to cleanup a given account's statuses within a budget

* Add worker to go through account policies and delete old toots

* Fix last inspected status id logic

All existing statuses older or equal to last inspected status id must be
kept by the current policy. This is an invariant that must be kept so that
resuming deletion from the last inspected status remains sound.

* Add tests

* Refactor scheduler and add tests

* Add user interface

* Add support for discriminating based on boosts/favs

* Add UI support for min_reblogs and min_favs, rework UI

* Address first round of review comments

* Replace Snowflake#id_at_start with with_random parameter

* Add tests

* Add tests for StatusesCleanupController

* Rework settings page

* Adjust load-avoiding mechanisms

* Please CodeClimate
2021-08-09 23:11:50 +02:00
..
accounts_cli.rb Add ability to skip sign-in token authentication for specific users (#16427) 2021-07-08 05:31:28 +02:00
cache_cli.rb
cli_helper.rb Fix DB connection pool settings in CLI (#15983) 2021-03-31 17:46:17 +02:00
domains_cli.rb Add --by-uri option to tootctl domains purge (#16434) 2021-07-07 21:17:00 +02:00
email_domain_blocks_cli.rb Fixed code quality issues (#15541) 2021-01-31 21:26:09 +01:00
emoji_cli.rb tootctl emoji import: case insensitive duplicate check (#15738) 2021-03-24 10:55:16 +01:00
feeds_cli.rb Fix tootctl not allocating enough database connections for main thread (#12097) 2019-10-07 05:05:02 +02:00
ip_blocks_cli.rb Fix tootctl ip_blocks add failing if not given a comment (#15263) 2020-12-02 21:19:41 +01:00
maintenance_cli.rb Fix account deletion sometimes failing because of optimistic locks (#16317) 2021-06-02 17:41:25 +02:00
media_cli.rb Use Rails' index_by where it makes sense (#15542) 2021-01-12 09:27:38 +01:00
migration_helpers.rb Fix migration script not being able to run if it fails midway (#16312) 2021-06-02 19:15:17 +02:00
premailer_webpack_strategy.rb
preview_cards_cli.rb
redis_config.rb Add a Redis environment variable for sidekiq (#16188) 2021-05-09 10:40:17 +02:00
search_cli.rb Fix tootctl search deploy on Ruby 3 (#16346) 2021-06-01 17:31:49 +02:00
settings_cli.rb
snowflake.rb Add feature to automatically delete old toots (#16529) 2021-08-09 23:11:50 +02:00
statuses_cli.rb Add --skip-media-remove option to tootctl statuses remove (#13080) 2020-03-08 16:01:07 +01:00
upgrade_cli.rb Fix tootctl upgrade storage-schema S3 ACL (#13768) 2020-05-17 17:27:36 +02:00
version.rb Change references to tootsuite/mastodon to mastodon/mastodon (#16491) 2021-07-13 15:46:20 +02:00