Nick Schonning
2177daeae9
Autofix Rubocop Style/RedundantBegin ( #23703 )
2 years ago
Nick Schonning
e2a3ebb271
Autofix Rubocop Style/IfUnlessModifier ( #23697 )
2 years ago
Evan
78ef635980
Add command to remove avatar and header images of inactive remote accounts 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>
2 years ago
Jeong Arm
882e54c786
Fix Ambiguous SQL error on tootctl media refresh ( #19206 )
2 years ago
Jeong Arm
e682975afd
Add '--days' option to tootctl media refresh ( #18425 )
...
* Add '--days' option to tootctl media refresh
* Fix undefined scope
2 years ago
Jeong Arm
884c60002e
Skip blocked domains media on tootctl media refresh ( #16914 )
3 years ago
ThibG
54d4e5252b
Use Rails' index_by where it makes sense ( #15542 )
...
* Use Rails' index_by where it makes sense
* Fix tests
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
4 years ago
Y.Yamashiro
abc91e5fa6
Change S3 ACL in "tootctl media remove-orphans --fix-permissions" from fixed value to environment file's value. ( #14715 )
4 years ago
Eugen Rochko
71085987e8
Add `--fix-permissions` option to `tootctl media remove-orphans` ( #14383 )
4 years ago
Takeshi Umeda
175cd4f8ef
Fix an error when file_file_size is nil in tootctl media remove ( #14657 )
4 years ago
ThibG
decc5b9a78
Fix `tootctl media` commands not handling snowflake ids for media_attachments ( #14536 )
4 years ago
Eugen Rochko
64aac30733
Add customizable thumbnails for audio and video attachments ( #14145 )
...
- 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
4 years ago
Eugen Rochko
199bbbcb9f
Fix `tootctl media remove-orphans` choking on unknown files in storage ( #13765 )
...
Fix #13762
Catch tootctl interrupt to prevent confusing stacktrace
5 years ago
Takeshi Umeda
cbfb2c0e71
Fix tootctl media refresh ( #13751 )
5 years ago
ThibG
34756cc4e0
Fix "tootctl media remove-orphans" crashing on “Import” files ( #13685 )
...
* Fix "tootctl media remove-orphans" crashing on “Import” files
* Also remove empty directories when removing orphaned media
5 years ago
Eugen Rochko
c3ca3801f2
Add separate cache directory for non-local uploads ( #12821 )
5 years ago
Eugen Rochko
c99bc5d51b
Fix regression in `tootctl media remove-orphans` ( #13405 )
...
Fix #13401
5 years ago
Eugen Rochko
a9a063c0e9
Fix `tootctl media remove-orphans` ignoring `PAPERCLIP_ROOT_PATH` ( #13375 )
...
Fix #13371
5 years ago
Eugen Rochko
0c8945e5ff
Change `tootctl media remove-orphans` to work for all classes ( #13316 )
...
Change `tootctl media lookup` to not use an interactive prompt
5 years ago
Eugen Rochko
d7bcc0930c
Fix error handling in `tootctl media remove-orphans` ( #12571 )
5 years ago
Eugen Rochko
f3d232381d
Add `tootctl media remove-orphans` ( #12568 )
5 years ago
Nathaniel Suchy
23ed9303b8
Add `tootctl media lookup` command ( #12283 )
...
* 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
5 years ago
Eugen Rochko
4a98e77d0e
Change `tootctl media refresh` to skip already downloaded attachments ( #12118 )
5 years ago
Eugen Rochko
0aaa3afc2d
Add `tootctl media usage` command ( #12115 )
5 years ago
Eugen Rochko
031ca25014
Add retry for failed media downloads and `tootctl media refresh` ( #11775 )
5 years ago
Eugen Rochko
8674814825
Change tootctl to use inline parallelization instead of Sidekiq ( #11776 )
...
- Remove --background option
- Add --concurrency(=5) option
- Add progress bars
5 years ago
mayaeh
8f7e3d3772
Fix "tootctl media remove" can't count the file size ( #9288 )
...
* Fixed an issue where "tootctl media remove" can not count the file size.
* Fixed the problem pointed out by codeclimate.
6 years ago
Eugen Rochko
16a16f62c7
Fix nil error regression from #9229 in tootctl media remove ( #9239 )
...
Fix #9237
6 years ago
Eugen Rochko
3ddb460449
Display amount of freed disk space in tootctl media remove ( #9229 )
...
* Display amount of freed disk space in tootctl media remove
Fix #9213
* Fix code style issue
6 years ago
Eugen Rochko
6f78500d4f
Do not remove "dead" domains in tootctl accounts cull ( #9108 )
...
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
6 years ago
Sascha
b9d7021c1b
cli: set exit_on_failure for all CLI classes ( #9094 )
6 years ago
Eugen Rochko
6a3f9b7e53
Move more tasks to tootctl ( #8675 )
...
* 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
6 years ago
mayaeh
18eb565755
Add --verbose and --dry-run option to tootctl media remove ( #8519 )
...
* Add --verbose and --dry-run options to CLI interface for removing remote media.
* Fix coding style problem.
6 years ago
mayaeh
cc26fd71ac
Fix CLI interface for removing remote media ( #8506 )
...
* 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.
6 years ago
Eugen Rochko
cabdbb7f9c
Add CLI task for rotating keys ( #8466 )
...
* 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
6 years ago
Eugen Rochko
b378b4c5c7
Add CLI interface for importing custom emoji ( #8437 )
...
bin/tootctl emoji import PATH_TO_TAR
Fix #8435
6 years ago
Eugen Rochko
793eea2982
Add improved CLI interface for removing remote media ( #8411 )
...
./bin/tootctl media remove --days 7 --background
Make the old rake task point to it
6 years ago