mirror of
https://github.com/mastodon/mastodon
synced 2024-11-24 07:06:18 +09:00
Handle if username is not found on tootctl feeds build (#9040)
This commit is contained in:
parent
8d70d3de38
commit
68f0e4d54e
@ -54,6 +54,11 @@ module Mastodon
|
||||
elsif username.present?
|
||||
account = Account.find_local(username)
|
||||
|
||||
if account.nil?
|
||||
say("Account #{username} is not found", :red)
|
||||
exit(1)
|
||||
end
|
||||
|
||||
if options[:background]
|
||||
RegenerationWorker.perform_async(account.id) unless options[:dry_run]
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user