about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-10-22 16:58:08 +0200
committerGitHub <noreply@github.com>2018-10-22 16:58:08 +0200
commitf5b8bd4392d7955c84de187e56def191dcf7de51 (patch)
treee2294a187601bbc5a0fe26d3e8a6406fd61947d8 /lib
parentc7e9f9ff1ed1def7f14f6ca4ac2836005eeefa47 (diff)
Fix cull tripping on nil in last_webfingered_at (#9051)
Fix #8741
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/accounts_cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb
index 829fab19e..a32bc9533 100644
--- a/lib/mastodon/accounts_cli.rb
+++ b/lib/mastodon/accounts_cli.rb
@@ -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