about summary refs log tree commit diff
path: root/lib/mastodon/accounts_cli.rb
AgeCommit message (Collapse)Author
2023-03-08Add refreshing many accounts at once with "tootctl accounts refresh" (#23304)9p4
2023-03-03Fix tootctl accounts migrate error due to typo (#23567)Claire
2023-02-19Autofix Rubocop Style/RedundantBegin (#23703)Nick Schonning
2023-01-13Implement tootctl accounts prune (#18397)Jeong Arm
* Implement tootctl accounts prune * Optimise query Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-01-13Add `tootctl accounts migrate` (#22330)Claire
* Add tootctl accounts replay-migration Fixes #22281 * Change `tootctl accounts replay-migration` to `tootctl accounts migrate`
2022-12-15Add --email and --dry-run options to `tootctl accounts delete` (#22328)Claire
2022-12-07Fix deprecation warning in `tootctl accounts rotate` (#22120)Claire
2022-10-27Add `--remove-role` option to `tootctl accounts modify` (#19477)Eugen Rochko
Fix #19152
2022-08-13Minimal adjustments to the short description (#18001)Brayd
Minimal adjustments have been made to the short description so that it logically follows the long description
2022-07-05Add customizable user roles (#18641)Eugen Rochko
* Add customizable user roles * Various fixes and improvements * Add migration for old settings and fix tootctl role management
2022-04-06Remove sign-in token authentication, instead send e-mail about new sign-in ↵Eugen Rochko
(#17970)
2021-10-14Add optional domain restrict to tootctl accounts cull (#16511)Jeong Arm
* Add optional domain restrict to accounts cull * Use "unless" - codeclimate
2021-10-14Fix `tootctl accounts cull` not excluding domains on timeouts and ↵Claire
certificate issues (#16433) Fixes #16410
2021-07-08Add ability to skip sign-in token authentication for specific users (#16427)Eugen Rochko
Remove "active within last two weeks" exception for sign in token requirement Change admin reset password to lock access until the password is reset
2021-01-29Fix “tootctl accounts unfollow” (#15639)ThibG
Fixes #15635 Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2020-12-26Fix being able to import more than allowed number of follows (#15384)ThibG
* Fix being able to import more than allowed number of follows Without this commit, if someone tries importing a second list of accounts to follow before the first one has been processed, this will queue imports for the two whole lists, even if they exceed the account's allowed number of outgoing follows. This commit changes it so the individual queued imports aren't exempt from the follow limit check (they remain exempt from the rate-limiting check though). * Catch validation errors to not re-queue failed follows Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2020-12-22Fix external user creation failing when invite request text is required (#15405)ThibG
* Fix external user creation failing when invite request text is required Also fixes tootctl-based user creation. * Add test about invites when invite request text is otherwise required Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2020-12-19Fix "tootctl accounts fix-duplicates" (#15373)ThibG
- `pluck_each` cannot be used this way with `group` - typo Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2020-12-18Fix resolving accounts sometimes creating duplicate records for a given AP ↵ThibG
id (#15364) * Fix ResolveAccountService accepting mismatching acct: URI * Set attributes that should be updated regardless of suspension * Fix key fetching * Automatically merge remote accounts with duplicate `uri` * Add tests * Add "tootctl accounts fix-duplicates" Finds duplicate accounts sharing a same ActivityPub `id`, re-fetch them and merge them under the canonical `acct:` URI. Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2020-11-23Add `tootctl accounts merge` (#15201)Eugen Rochko
* Add `tootctl accounts merge` * Update lib/mastodon/accounts_cli.rb Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh> Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
2020-11-08Add support for reversible suspensions through ActivityPub (#14989)Eugen Rochko
2020-09-15Change account suspensions to be reversible by default (#14726)Eugen Rochko
2020-02-22Add `--reset-password` option to `tootctl accounts modify` (#13126)ThibG
2019-10-06Remove unused option from tootctl accounts cull (#12074)Jeong Arm
2019-09-11Change deletes to preserve soft-deleted statuses in unresolved reports (#11805)Eugen Rochko
Change all account actions except "none" to resolve all unresolved reports Refactor `SuspendAccountService` to be more readable
2019-09-10Change tootctl to use inline parallelization instead of Sidekiq (#11776)Eugen Rochko
- Remove --background option - Add --concurrency(=5) option - Add progress bars
2019-08-17Limit "tootctl accounts follow" to local accounts (#11592)Stanislas
To (somewhat) limit mass remote follow. Fix #11360
2019-05-14Record account suspend/silence time and keep track of domain blocks (#10660)ThibG
* Record account suspend/silence time and keep track of domain blocks * Also unblock users who were suspended/silenced before dates were recorded * Add tests * Keep track of suspending date for users suspended through the CLI * Show accurate number of accounts that would be affected by unsuspending an instance * Change migration to set silenced_at and suspended_at * Revert "Also unblock users who were suspended/silenced before dates were recorded" This reverts commit a015c65d2d1e28c7b7cfab8b3f8cd5fb48b8b71c. * Switch from using suspended and silenced to suspended_at and silenced_at * Add post-deployment migration script to remove `suspended` and `silenced` columns * Use Account#silence! and Account#suspend! instead of updating the underlying property * Add silenced_at and suspended_at migration to post-migration * Change account fabricator to translate suspended and silenced attributes * Minor fixes * Make unblocking domains always retroactive
2019-05-03Fix accounts created through tootctl not being always pre-approved (#10684)Eugen Rochko
Add `--approve` option to `tootctl accounts modify`
2019-04-08Add `tootctl accounts reset-relationships` (#10483)Takeshi Umeda
* Add `tootctl accounts reset` * Rename reset to reset-relationships * Improve command description
2019-04-06Add `tootctl accounts approve` (#10480)Eugen Rochko
2019-04-04Fix `tootctl accounts cull` (#10460)Ben Lubar
* List the actual accounts that would have been culled during a dry run. Otherwise, the dry run mode is basically useless. * Prevent unreachable domains from inheriting the previous status code. * Update CHANGELOG.md for #10460.
2019-04-01Simplify culling and fix race condition (#10440)Jeong Arm
2019-01-20Fix `tootctl accounts delete` not deleting user record as well (#9874)Eugen Rochko
2019-01-01Add tootctl accounts follow ACCT (#9414)Eugen Rochko
Fix #9369
2018-12-24Add REST API for creating an account (#9572)Eugen Rochko
* Add REST API for creating an account The method is available to apps with a token obtained via the client credentials grant. It creates a user and account records, as well as an access token for the app that initiated the request. The user is unconfirmed, and an e-mail is sent as usual. The method returns the access token, which the app should save for later. The REST API is not available to users with unconfirmed accounts, so the app must be smart to wait for the user to click a link in their e-mail inbox. The method is rate-limited by IP to 5 requests per 30 minutes. * Redirect users back to app from confirmation if they were created with an app * Add tests * Return 403 on the method if registrations are not open * Require agreement param to be true in the API when creating an account
2018-12-18Fix tootctl accounts rotate not updating public keys (#9556)Eugen Rochko
This allowed you to brick your system when running that command, because the accounts would continue to advertise the old public key, but sign things with the new one
2018-11-20Touch account on successful response, change char shown when culled (#9293)Renato "Lond" Cerqueira
Just the color is not enough change since not everyone uses colored terminals. Touching the account makes it so that the account is not in the threshold window in case of running again
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-10-22Fix cull tripping on nil in last_webfingered_at (#9051)Eugen Rochko
Fix #8741
2018-10-21Fix tootctl cull on dead servers (#9041)Jeong Arm
* Delete first 9 accounts on dead servers * Clean up code by moving dead server culling to the end
2018-09-29Fix tootctl accounts reattaching not unsuspending deleted account (#8812)Eugen Rochko
2018-09-28Add tootctl accounts backup (#8811)Eugen Rochko
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-09-09tootctl accounts [add|del|cull] (#8642)Eugen Rochko
* CLI interface for creating/deleting local users - tootctl accounts add USERNAME - tootctl accounts del USERNAME * Add CLI interface for culling remote users that no longer exist - tootctl accounts cull
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