Browse Source

Fix tootctl ip_blocks add failing if not given a comment (#15263)

Fixes #15261
master
ThibG 3 years ago
committed by GitHub
parent
commit
fbff89be03
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/mastodon/ip_blocks_cli.rb

+ 1
- 1
lib/mastodon/ip_blocks_cli.rb View File

@ -47,7 +47,7 @@ module Mastodon
ip_block ||= IpBlock.new(ip: address)
ip_block.severity = options[:severity]
ip_block.comment = options[:comment]
ip_block.comment = options[:comment] if options[:comment].present?
ip_block.expires_in = options[:duration]
if ip_block.save

Loading…
Cancel
Save