]> cat aescling's git repositories - mastodon.git/commitdiff
Fix cull tripping on nil in last_webfingered_at (#9051)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 22 Oct 2018 14:58:08 +0000 (16:58 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Oct 2018 14:58:08 +0000 (16:58 +0200)
Fix #8741

lib/mastodon/accounts_cli.rb

index 829fab19ebfed9fd5737872816e684b6f64b2b8c..a32bc953325d481cd446abc0de5b08b18c9438e4 100644 (file)
@@ -223,7 +223,7 @@ module Mastodon
       dry_run           = options[:dry_run] ? ' (DRY RUN)' : ''
 
       Account.remote.where(protocol: :activitypub).partitioned.find_each do |account|
-        next if account.updated_at >= skip_threshold || account.last_webfingered_at >= skip_threshold
+        next if account.updated_at >= skip_threshold || (account.last_webfingered_at.present? && account.last_webfingered_at >= skip_threshold)
 
         unless dead_servers.include?(account.domain)
           begin