Skip to content
Snippets Groups Projects
Unverified Commit f5b8bd43 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix cull tripping on nil in last_webfingered_at (#9051)

Fix #8741
parent c7e9f9ff
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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