Skip to content
Snippets Groups Projects
Unverified Commit fbff89be authored by ThibG's avatar ThibG Committed by GitHub
Browse files

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

Fixes #15261
parent 4b7f21a2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment