Evan
2d3b9084db
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
32efaf0856
Fix Ambiguous SQL error on tootctl media refresh ( #19206 )
2 years ago
Jeong Arm
8c1ea0976b
Add '--days' option to tootctl media refresh ( #18425 )
...
* Add '--days' option to tootctl media refresh
* Fix undefined scope
2 years ago
Jeong Arm
a38eceedb1
Skip blocked domains media on tootctl media refresh ( #16914 )
3 years ago
ThibG
2582047c36
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
78feafaa85
Change S3 ACL in "tootctl media remove-orphans --fix-permissions" from fixed value to environment file's value. ( #14715 )
4 years ago
Eugen Rochko
dc2ea5223b
Add `--fix-permissions` option to `tootctl media remove-orphans` ( #14383 )
4 years ago
Takeshi Umeda
e0b8201f67
Fix an error when file_file_size is nil in tootctl media remove ( #14657 )
4 years ago
ThibG
ccb975df83
Fix `tootctl media` commands not handling snowflake ids for media_attachments ( #14536 )
4 years ago
Eugen Rochko
a3ce01a102
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
7e7613ec9c
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
27a938101c
Fix tootctl media refresh ( #13751 )
5 years ago
ThibG
b7f47014a7
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
adfb22a9dd
Add separate cache directory for non-local uploads ( #12821 )
5 years ago
Eugen Rochko
ccee0578a4
Fix regression in `tootctl media remove-orphans` ( #13405 )
...
Fix #13401
5 years ago
Eugen Rochko
7045cb5d5c
Fix `tootctl media remove-orphans` ignoring `PAPERCLIP_ROOT_PATH` ( #13375 )
...
Fix #13371
5 years ago
Eugen Rochko
1cb4645638
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
fa15a5e9f2
Fix error handling in `tootctl media remove-orphans` ( #12571 )
5 years ago
Eugen Rochko
0769ef8277
Add `tootctl media remove-orphans` ( #12568 )
5 years ago
Nathaniel Suchy
8ae8e9268e
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
347c82efed
Change `tootctl media refresh` to skip already downloaded attachments ( #12118 )
5 years ago
Eugen Rochko
c47d7b8abf
Add `tootctl media usage` command ( #12115 )
5 years ago
Eugen Rochko
8eab4349b4
Add retry for failed media downloads and `tootctl media refresh` ( #11775 )
5 years ago
Eugen Rochko
666c1a8a06
Change tootctl to use inline parallelization instead of Sidekiq ( #11776 )
...
- Remove --background option
- Add --concurrency(=5) option
- Add progress bars
5 years ago
mayaeh
214aab8715
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
eed84cacba
Fix nil error regression from #9229 in tootctl media remove ( #9239 )
...
Fix #9237
6 years ago
Eugen Rochko
a178e66988
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
f435af86e7
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
94b16add64
cli: set exit_on_failure for all CLI classes ( #9094 )
6 years ago
Eugen Rochko
26d73847cb
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
6823e24a9d
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
2adac68cc7
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
1d319c531e
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
7271a40d09
Add CLI interface for importing custom emoji ( #8437 )
...
bin/tootctl emoji import PATH_TO_TAR
Fix #8435
6 years ago
Eugen Rochko
e6e845f74d
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