Commit graph

288 commits

Author SHA1 Message Date
Eugen Rochko
6f798eb574
Bump version to 3.2.0rc1 () 2020-07-15 21:07:27 +02:00
Eugen Rochko
4abe3be321
Change tootctl search deploy algorithm () 2020-07-14 18:10:35 +02:00
Eugen Rochko
96e89d1ef4
Bump version to 3.1.5 () 2020-07-10 21:07:30 +02:00
Eugen Rochko
64aac30733
Add customizable thumbnails for audio and video attachments ()
- 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-06-29 13:56:55 +02:00
Eugen Rochko
8c04e37b03
Remove the terms blacklist and whitelist from UX ()
Localization strings:

- "Whitelist mode" -> "Limited federation mode"
- "Blacklist e-mail domain" -> "Block e-mail domain"
- "Whitelist domain" -> "Allow domain for federation"

...And so on

Environment variables (backwards-compatible):

- `WHITELIST_MODE` -> `LIMITED_FEDERATION_MODE`
- `EMAIL_DOMAIN_BLACKLIST` -> `EMAIL_DOMAIN_DENYLIST`
- `EMAIL_DOMAIN_WHITELIST` -> `EMAIL_DOMAIN_ALLOWLIST`

tootctl:

- `tootctl domains purge --whitelist-mode` -> `tootctl domains purge --limited-federation-mode`

Removed badly maintained and no longer relevant .env.production.sample file
2020-06-27 20:20:11 +02:00
Eugen Rochko
4662afe075
Fix help text around tootctl email_domain_blocks () 2020-06-26 21:28:40 +02:00
tateisu
370e38ee15
Add tootctl email-domain-blocks ()
* Add tootctl email_domains (block|unblock)

* fix codeclimate issues.

* fix codeclimate issues.

* fix codeclimate issues.

* add list subcommand, remove log_action.

* fix codeclimate issues.

* filter duplicate hostnames,ips before block

* rebase from currnet master branch.
rename email_domains_cli.rb to email_domain_blocks_cli.rb .
rename Mastodon::EmailDomainsCLI to Mastodon::EmailDomainBlocksCLI .
rename command email_domains to email-domain-blocks . (Thor recognizes both of - and _ )
rename subcommand block to add .
rename subcommand unblock to remove .
change the color in list subcommand to while for domain or cyan for childlen.
don't use include() in list subcommand.
suppress console output about succeeded entry.
add console output about count of processed/skipped.
remove capitalization in subcommand description.
remove long_desc in subcommand 'remove'.
remove duplicate where in subcommand 'remove'.

* fix codeclimate issue.
2020-06-25 12:17:10 +02:00
Stanislas
ce87469d0a
Fix tootctl upgrade storage-schema S3 ACL () 2020-05-17 17:27:36 +02:00
Eugen Rochko
199bbbcb9f
Fix tootctl media remove-orphans choking on unknown files in storage ()
Fix 

Catch tootctl interrupt to prevent confusing stacktrace
2020-05-15 18:41:27 +02:00
Eugen Rochko
2b91a3dac0
Fix tootctl upgrade storage-schema misbehaving ()
- Fix not moving original files of custom emojis
- Fix command failing to move any files with S3 storage
- Fix command marking records as upgraded when move failed

Fix 
2020-05-15 17:15:24 +02:00
Eugen Rochko
06225dee94
Bump version to 3.1.4 () 2020-05-14 07:46:11 +02:00
Takeshi Umeda
cbfb2c0e71
Fix tootctl media refresh () 2020-05-14 07:45:52 +02:00
ThibG
34756cc4e0
Fix "tootctl media remove-orphans" crashing on “Import” files ()
* Fix "tootctl media remove-orphans" crashing on “Import” files

* Also remove empty directories when removing orphaned media
2020-05-09 21:06:55 +02:00
Hanage999
ff72c0472f
Fix tootctl upgrade storage-schema failing to delete empty directories () 2020-05-04 13:51:34 +02:00
Lerk
157850577f
Add tootctl emoji export ()
* add emoji export command to cli

* fix codeclimate issues

* add error when no matching category was found

* add other suggestions

* exit 1 when no matching category is found

* changes according to suggestions

* 👀

* RubyNein

Y u always autoformat :c
2020-04-27 22:17:49 +02:00
Eugen Rochko
c3ca3801f2
Add separate cache directory for non-local uploads () 2020-04-26 23:29:08 +02:00
Eugen Rochko
c99bc5d51b
Fix regression in tootctl media remove-orphans ()
Fix 
2020-04-06 14:11:47 +02:00
Eugen Rochko
a889756dd5
Bump version to 3.1.3 () 2020-04-05 06:23:46 +02:00
Eugen Rochko
a9a063c0e9
Fix tootctl media remove-orphans ignoring PAPERCLIP_ROOT_PATH ()
Fix 
2020-04-02 05:28:51 +02:00
Eugen Rochko
0c8945e5ff
Change tootctl media remove-orphans to work for all classes ()
Change `tootctl media lookup` to not use an interactive prompt
2020-03-26 01:56:41 +01:00
tateisu
4e524218d3
Add --skip-media-remove option to tootctl statuses remove ()
* Add skip_media_remove option to tootctl statuses remove

* Add skip_media_remove option to tootctl statuses remove

Co-authored-by: tateisu <tateisu@juggler.jp>
2020-03-08 16:01:07 +01:00
ThibG
ce17cea221
Fix installation failing when Redis password contains special characters ()
* Add support for special characters in Redis passwords

Fixes 

* Refactor
2020-02-29 03:00:43 +01:00
Eugen Rochko
aa8568b7f2
Bump version to 3.1.2 () 2020-02-27 12:34:07 +01:00
ThibG
ca7ee9f1cf
Add --reset-password option to tootctl accounts modify () 2020-02-22 01:29:14 +01:00
Marcin Cieślak
bd4bbba98a
Do not suggest to login into the GitLab database ()
As pointed out on Discourse:

https://discourse.joinmastodon.org/t/obscure-wtf-error-message-running-migrations-for-3-1/2524

The message the administrators were getting was telling them
to log in to the "GitLab database" and also mentions MySQL
2020-02-15 12:52:57 +01:00
Eugen Rochko
b752666e3f
Bump version to 3.1.1 () 2020-02-10 02:55:40 +01:00
Eugen Rochko
d2bcef7f6f Bump version to 3.1.0 () 2020-02-09 00:02:08 +01:00
Eugen Rochko
60e160a02d
Bump version to 3.1.0rc2 () 2020-01-28 20:56:32 +01:00
Eugen Rochko
4bae4e972d
Bump version to 3.1.0rc1 () 2020-01-24 01:14:51 +01:00
Gomasy
3b08535463 Keep statuses bookmarked by local users in tootctl statuses remove () 2020-01-11 06:41:37 +01:00
ThibG
817d4a9372 Add --remote-only option to emoji purge ()
Fixes 
2020-01-10 00:10:17 +01:00
ThibG
7fe45e7c03 Changes to tootctl statuses remove ()
* Fix comments in statuses_cli

The comment for the part of query keeping statuses which have replies was
incorrect, explaining the part of the query kept favourited statuses instead

* Keep statuses favourited by local users in tootctl statuses remove

* Do delete old replies that are not direct interactions with local users

* Skip reblogs of local statuses instead of all reblogs

* Optimize some queries

* Keep old statuses with recent reblogs

* Add option to clear toots from followed accounts too
2019-12-17 13:33:36 +01:00
trwnh
1c10283217 Fix typo in tootctl statuses remove () 2019-12-12 19:50:08 +01:00
Eugen Rochko
d7bcc0930c
Fix error handling in tootctl media remove-orphans () 2019-12-09 04:26:00 +01:00
Eugen Rochko
f3d232381d
Add tootctl media remove-orphans () 2019-12-08 15:37:12 +01:00
Nathaniel Suchy
23ed9303b8 Add tootctl media lookup command ()
* 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-11-04 12:55:20 +01:00
Eugen Rochko
e6d111f38b
Bump version to 3.0.1 () 2019-10-09 07:36:57 +02:00
Eugen Rochko
4a98e77d0e
Change tootctl media refresh to skip already downloaded attachments () 2019-10-08 05:59:10 +02:00
Eugen Rochko
0aaa3afc2d
Add tootctl media usage command () 2019-10-07 20:04:56 +02:00
Eugen Rochko
6c9b4f6b77
Fix tootctl not allocating enough database connections for main thread () 2019-10-07 05:05:02 +02:00
Eugen Rochko
38b6c34e32
Fix issues with tootctl's parallelization and progress reporting () 2019-10-07 04:24:05 +02:00
Jeong Arm
c4fbfaf0b8 Remove unused option from tootctl accounts cull () 2019-10-06 04:30:07 +02:00
Eugen Rochko
83d3e7733d
Bump version to 3.0.0 () 2019-10-03 22:44:22 +02:00
Eugen Rochko
bae268b2f6
Bump version to 3.0.0rc3 () 2019-10-03 04:13:22 +02:00
Takeshi Umeda
0ce0baa9b5 Add parallelization to tootctl search deploy ()
* Add parallel gem

* Modify parallel option in tootctl search deploy

* Add paralell option to tootctl search deploy

* Change 1 to false

* Clean up

* Rename --parallel to --processes
2019-10-02 21:50:43 +02:00
Eugen Rochko
c7adf80827
Change tootctl domains purge to accept multiple domains at once () 2019-10-02 04:49:53 +02:00
Eugen Rochko
13b06d4b3b
Bump version to 3.0.0rc2 () 2019-09-29 18:50:16 +02:00
Eugen Rochko
e87bcaa107
Bump version to 3.0.0rc1 () 2019-09-21 20:02:14 +02:00
Eugen Rochko
3c8372fa81
Bump version to 2.9.3 () 2019-09-20 22:59:29 +02:00
Eugen Rochko
c5d37f18cb
Change deletes to preserve soft-deleted statuses in unresolved reports ()
Change all account actions except "none" to resolve all unresolved reports

Refactor `SuspendAccountService` to be more readable
2019-09-11 16:32:44 +02:00
Eugen Rochko
031ca25014
Add retry for failed media downloads and tootctl media refresh () 2019-09-10 15:29:12 +02:00
Eugen Rochko
8674814825
Change tootctl to use inline parallelization instead of Sidekiq ()
- Remove --background option
- Add --concurrency(=5) option
- Add progress bars
2019-09-10 13:48:48 +02:00
Eugen Rochko
96702e7f67
Add tootctl cache recount command () 2019-08-18 14:55:03 +02:00
Stanislas
3a77090d01 Limit "tootctl accounts follow" to local accounts ()
To (somewhat) limit mass remote follow. Fix 
2019-08-17 22:59:40 +02:00
Darius Kazemi
f96f45ef12 Add option to exclude suspended domains/subdomains from tootctl domains crawl ()
* Add "--exclude-suspended" to tootctl domains crawl

This new option ignores any instances suspended server-wide as
well as their associated subdomains. This queries all domain
blocks up front, then runs a regexp on each domain. This improves
performance over what may be the obvious implementation, which is
to ask `DomainBlocks.blocked?(domain)` for each domain -- this
hits the DB many times, slowing things down considerably.

* cleaning up code style

* Compiling regex

* Removing ternary operator
2019-08-03 19:11:09 +02:00
Eugen Rochko
24552b5160
Add whitelist mode () 2019-07-30 11:10:46 +02:00
mayaeh
0d80f686d8 Add tootctl preview_cards remove ()
* Add `tootctl preview_cards remove`

* fix code style

* Remove `Scheduler::PreviewCardsCleanupScheduler` file

* fix code style again
Add exclude case where image_file_name is blank

* Added a function to output confirmation if the specified number of days is less than 2 weeks
2019-07-28 13:48:19 +02:00
Clar Fon
a6b4440115 Remove pre from version, add extra suffix variable () 2019-07-26 07:57:27 +02:00
Eugen Rochko
e64e6a03dd
Add categories for custom emojis ()
Fix 
2019-06-28 15:54:10 +02:00
Eugen Rochko
b5c772c3d4
Bump version to 2.9.2 () 2019-06-22 17:28:26 +02:00
Eugen Rochko
84f945d64c
Bump version to 2.9.1 () 2019-06-22 01:51:27 +02:00
Eugen Rochko
c9eeb2e832
Bump version to 2.9.0 () 2019-06-13 20:19:21 +02:00
Eugen Rochko
275f09ccab
Bump version to 2.9.0rc2 () 2019-06-13 00:43:59 +02:00
Eugen Rochko
0949c43ab3
Bump version to 2.9.0rc1 () 2019-06-09 15:53:08 +02:00
Darius Kazemi
4431ce52a6 Specify gzip required in tootctl emoji help () 2019-06-08 12:43:11 -04:00
Eugen Rochko
5cdb4c483f
Forward port version bumps to 2.8.3 and 2.8.4 ()
* Bump version to 2.8.3

* Bump version to 2.8.4
2019-05-24 15:57:31 +02:00
ThibG
14f6ce2885 Record account suspend/silence time and keep track of domain blocks ()
* 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-14 19:05:02 +02:00
Jeong Arm
03801fcaa5 Remove custom emojis on "tootctl domains purge" ()
* Remove custom emojis on domains purge

* Change message "Removing" to "Removed"
2019-05-09 22:03:20 +02:00
Eugen Rochko
2508370f44
Bump version to 2.8.2 () 2019-05-05 17:14:15 +02:00
Ushitora Anqou
56880fa76a Add SOURCE_TAG to show source repository's tag () 2019-05-04 17:39:17 +02:00
Eugen Rochko
8025a41a1f
Add tootctl cache clear () 2019-05-04 01:02:57 +02:00
Eugen Rochko
5f9f610a23
Bump version to 2.8.1 () 2019-05-04 00:31:06 +02:00
Eugen Rochko
d77ee3f276
Fix accounts created through tootctl not being always pre-approved ()
Add `--approve` option to `tootctl accounts modify`
2019-05-03 20:49:27 +02:00
Sho Kusano
3e6c7f3617 Configrationable repository url ()
* config: Add GITHUB_REPOSITORY for repository name

* config: Add SOURCE_BASE_URL for repository url

* Show source_url and repository name on getting started
2019-04-21 04:41:34 +02:00
Eugen Rochko
6afab2587d
Bump version to 2.8.0 () 2019-04-10 23:32:08 +02:00
Eugen Rochko
830c2a9ccb
Bump version to 2.8.0rc3 () 2019-04-10 04:25:09 +02:00
Eugen Rochko
c03f926cf3
Bump version to 2.8.0rc2 () 2019-04-09 05:04:11 +02:00
Takeshi Umeda
08ba69b538 Add tootctl accounts reset-relationships ()
* Add `tootctl accounts reset`

* Rename reset to reset-relationships

* Improve command description
2019-04-08 07:46:55 +02:00
Eugen Rochko
20d301c383
Fix missing long description on tootctl statuses remove () 2019-04-06 04:47:26 +02:00
Eugen Rochko
6689e572f3
Add tootctl emoji purge ()
Fix 
2019-04-06 04:47:16 +02:00
Eugen Rochko
e007c7a99b
Add tootctl accounts approve () 2019-04-06 04:47:05 +02:00
Ben Lubar
e6814a332c Fix tootctl accounts cull ()
* 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 .
2019-04-04 16:46:27 +02:00
Jeong Arm
67eb47e25f Simplify culling and fix race condition () 2019-04-01 19:17:21 +02:00
Eugen Rochko
ac650d7a13
Bump version to 2.8.0rc1 ()
Update AUTHORS.md
Update CHANGELOG.md
2019-03-30 02:13:42 +01:00
Eugen Rochko
5d41532d94
Add tootctl search deploy to avoid ugly rake task syntax () 2019-03-28 02:16:11 +01:00
Eugen Rochko
51e154f5e8
Admission-based registrations mode ()
Fix 
Fix 
2019-03-14 05:28:30 +01:00
Eugen Rochko
67665023c3
Add tootctl statuses remove to sweep unreferenced statuses ()
Query by @tateisu

Fix 
2019-03-11 13:45:17 +01:00
Eugen Rochko
7d5e2dda78
Bump version to 2.7.4 () 2019-03-05 18:22:46 +01:00
Eugen Rochko
96db7191d8
Bump version to 2.7.3 () 2019-02-23 22:20:20 +01:00
Eugen Rochko
7853be1f06
Bump version to 2.7.2 () 2019-02-17 20:24:12 +01:00
Eugen Rochko
28866d329b
Bump version to 2.7.1 () 2019-01-28 04:24:12 +01:00
Stanislas
01bc2f84a9 Fix SUPERUSER postgres command () 2019-01-27 23:56:07 +01:00
Eugen Rochko
e9cd3636c6
Fix tootctl accounts delete not deleting user record as well () 2019-01-20 12:30:25 +01:00
Eugen Rochko
7cf85c0133
Bump version to 2.7.0 2019-01-20 00:30:53 +01:00
Eugen Rochko
57e79eb1c2
Bump to 2.7.0rc3 2019-01-19 00:01:27 +01:00
Eugen Rochko
b59818d4ab
Bump version to 2.7.0rc2 () 2019-01-18 22:55:01 +01:00
Eugen Rochko
59e3a7f87b
Fix tootctl domains crawl with JSON format output crash ()
Fix 
2019-01-16 15:47:55 +01:00
Eugen Rochko
ee5e24807f
Add tootctl domains crawl () 2019-01-15 09:24:35 +01:00
Eugen Rochko
15aed1ee6c
Bump version to 2.7.0rc1 () 2019-01-08 14:10:54 +01:00
Eugen Rochko
ed12619985
Add tootctl accounts follow ACCT ()
Fix 
2019-01-01 16:24:26 +01:00