mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-16 20:22:18 +00:00
Add ability to block sign-ups from IP using the CLI (#24870)
This commit is contained in:
parent
ffb3fef7db
commit
536dd046d4
|
@ -11,7 +11,7 @@ module Mastodon
|
||||||
true
|
true
|
||||||
end
|
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 :comment, aliases: [:c], desc: 'Optional comment'
|
||||||
option :duration, aliases: [:d], type: :numeric, desc: 'Duration of the block in seconds'
|
option :duration, aliases: [:d], type: :numeric, desc: 'Duration of the block in seconds'
|
||||||
option :force, type: :boolean, aliases: [:f], desc: 'Overwrite existing blocks'
|
option :force, type: :boolean, aliases: [:f], desc: 'Overwrite existing blocks'
|
||||||
|
|
Loading…
Reference in a new issue