Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix tootctl ip_blocks add failing if not given a comment (mastodon#15263
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Dec 2, 2020
1 parent 4b7f21a commit fbff89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mastodon/ip_blocks_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def add(*addresses)
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
Expand Down

0 comments on commit fbff89b

Please sign in to comment.