about summary refs log tree commit diff
path: root/lib/mastodon/media_cli.rb
AgeCommit message (Collapse)Author
2023-03-16Regen rubocop-todo without Max shadowing (#24076)Nick Schonning
2023-02-19Autofix Rubocop Style/RedundantBegin (#23703)Nick Schonning
2023-02-18Autofix Rubocop Style/IfUnlessModifier (#23697)Nick Schonning
2022-12-14Add command to remove avatar and header images of inactive remote accounts ↵Evan
from the local database (#22149) * Add tootctl subcommand media remove-profile-media * Trigger workflows * Correcting external linting * External linting error * External linting fix * Merging with remove command * Linting * Correct long option names Co-authored-by: Claire <claire.github-309c@sitedethib.com> * Correct long option names Co-authored-by: Claire <claire.github-309c@sitedethib.com> * Correct long option names Co-authored-by: Claire <claire.github-309c@sitedethib.com> * Remove saving a list of purged accounts Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2022-09-20Fix Ambiguous SQL error on tootctl media refresh (#19206)Jeong Arm
2022-08-25Add '--days' option to tootctl media refresh (#18425)Jeong Arm
* Add '--days' option to tootctl media refresh * Fix undefined scope
2021-10-28Skip blocked domains media on tootctl media refresh (#16914)Jeong Arm
2021-01-12Use Rails' index_by where it makes sense (#15542)ThibG
* Use Rails' index_by where it makes sense * Fix tests Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2020-09-02Change S3 ACL in "tootctl media remove-orphans --fix-permissions" from fixed ↵Y.Yamashiro
value to environment file's value. (#14715)
2020-09-01Add `--fix-permissions` option to `tootctl media remove-orphans` (#14383)Eugen Rochko
2020-08-24Fix an error when file_file_size is nil in tootctl media remove (#14657)Takeshi Umeda
2020-08-10Fix `tootctl media` commands not handling snowflake ids for ↵ThibG
media_attachments (#14536)
2020-06-29Add customizable thumbnails for audio and video attachments (#14145)Eugen Rochko
- Change audio files to not be stripped of metadata - Automatically extract cover art from audio if it exists - Add `thumbnail` parameter to `POST /api/v1/media`, `POST /api/v2/media` and `PUT /api/v1/media/:id` - Add `icon` to represent it in attachments in ActivityPub - Fix `preview_url` containing URL of missing missing image when there is no thumbnail instead of null - Fix duration of audio not being displayed on public pages until the file is loaded
2020-05-15Fix `tootctl media remove-orphans` choking on unknown files in storage (#13765)Eugen Rochko
Fix #13762 Catch tootctl interrupt to prevent confusing stacktrace
2020-05-14Fix tootctl media refresh (#13751)Takeshi Umeda
2020-05-09Fix "tootctl media remove-orphans" crashing on “Import” files (#13685)ThibG
* Fix "tootctl media remove-orphans" crashing on “Import” files * Also remove empty directories when removing orphaned media
2020-04-26Add separate cache directory for non-local uploads (#12821)Eugen Rochko
2020-04-06Fix regression in `tootctl media remove-orphans` (#13405)Eugen Rochko
Fix #13401
2020-04-02Fix `tootctl media remove-orphans` ignoring `PAPERCLIP_ROOT_PATH` (#13375)Eugen Rochko
Fix #13371
2020-03-26Change `tootctl media remove-orphans` to work for all classes (#13316)Eugen Rochko
Change `tootctl media lookup` to not use an interactive prompt
2019-12-09Fix error handling in `tootctl media remove-orphans` (#12571)Eugen Rochko
2019-12-08Add `tootctl media remove-orphans` (#12568)Eugen Rochko
2019-11-04Add `tootctl media lookup` command (#12283)Nathaniel Suchy
* Add a lookup tool to the media cli * Improved lookup logic * Clarified wording in the output * Code style changes * Code style changes * Code style changes * Code style changes * Add error handling code incase an attachment isn't found * Code style changes * Code style changes * Make requested changes * Fix styling issues * Handle other media types * Remove an inadvertently added log * Make requested changes * Make the code safe no matter what the path, S3 or not * Code style changes * Code style changes * Replace select method with Ruby Enumerable grep method
2019-10-08Change `tootctl media refresh` to skip already downloaded attachments (#12118)Eugen Rochko
2019-10-07Add `tootctl media usage` command (#12115)Eugen Rochko
2019-09-10Add retry for failed media downloads and `tootctl media refresh` (#11775)Eugen Rochko
2019-09-10Change tootctl to use inline parallelization instead of Sidekiq (#11776)Eugen Rochko
- Remove --background option - Add --concurrency(=5) option - Add progress bars
2018-11-16Fix "tootctl media remove" can't count the file size (#9288)mayaeh
* Fixed an issue where "tootctl media remove" can not count the file size. * Fixed the problem pointed out by codeclimate.
2018-11-08Fix nil error regression from #9229 in tootctl media remove (#9239)Eugen Rochko
Fix #9237
2018-11-08Display amount of freed disk space in tootctl media remove (#9229)Eugen Rochko
* Display amount of freed disk space in tootctl media remove Fix #9213 * Fix code style issue
2018-10-27Do not remove "dead" domains in tootctl accounts cull (#9108)Eugen Rochko
Leave `tootctl accounts cull` to simply check removed accounts from live domains, and skip temporarily unavailable domains, while listing them in the final output for further action. Add `tootctl domains purge DOMAIN` to be able to purge a domain from that list manually
2018-10-25cli: set exit_on_failure for all CLI classes (#9094)Sascha
2018-09-14Move more tasks to tootctl (#8675)Eugen Rochko
* Move more tasks to tootctl - tootctl feeds build - tootctl feeds clear - tootctl accounts refresh Clean up exit codes and help messages * Move user modifying to tootctl * Improve user modification through CLI, rename commands add -> create mod -> modify del -> delete To remove ambiguity * Fix code style issues * Fix not being able to unset admin/mod role
2018-08-31Add --verbose and --dry-run option to tootctl media remove (#8519)mayaeh
* Add --verbose and --dry-run options to CLI interface for removing remote media. * Fix coding style problem.
2018-08-29Fix CLI interface for removing remote media (#8506)mayaeh
* Fix that can't delete media files even if "tootctl media remove" execute when "--background" not attached. * Revert This reverts commit 5aa7e09645b27bae38a26030148b23e553ee2662. * Change to obtain and pass all columns when "--background" option is false.
2018-08-26Add CLI task for rotating keys (#8466)Eugen Rochko
* If an Update is signed with known key, skip re-following procedure Because it means the remote actor did *not* lose their database * Add CLI method for rotating keys bin/tootctl accounts rotate [USERNAME] Generates a new RSA key per account and sends out an Update activity signed with the old key. * Key rotation: Space out Update fan-outs every 5 minutes per 1000 accounts * Skip suspended accounts in key rotation
2018-08-26Add CLI interface for importing custom emoji (#8437)Eugen Rochko
bin/tootctl emoji import PATH_TO_TAR Fix #8435
2018-08-25Add improved CLI interface for removing remote media (#8411)Eugen Rochko
./bin/tootctl media remove --days 7 --background Make the old rake task point to it