~cytrogen/masto-fe

536dd046d44c1fb5738ee7044b359b63fb4359c7 — Daniel M Brasil 2 years ago ffb3fef
Add ability to block sign-ups from IP using the CLI (#24870)

1 files changed, 1 insertions(+), 1 deletions(-)

M lib/mastodon/ip_blocks_cli.rb
M lib/mastodon/ip_blocks_cli.rb => lib/mastodon/ip_blocks_cli.rb +1 -1
@@ 11,7 11,7 @@ module Mastodon
      true
    end

    option :severity, required: true, enum: %w(no_access sign_up_requires_approval), desc: 'Severity of the block'
    option :severity, required: true, enum: %w(no_access sign_up_requires_approval sign_up_block), desc: 'Severity of the block'
    option :comment, aliases: [:c], desc: 'Optional comment'
    option :duration, aliases: [:d], type: :numeric, desc: 'Duration of the block in seconds'
    option :force, type: :boolean, aliases: [:f], desc: 'Overwrite existing blocks'