Skip to content

Commit

Permalink
Prevent unreachable domains from inheriting the previous status code.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Apr 3, 2019
1 parent 046ab3e commit e2d246f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mastodon/accounts_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def cull
Account.remote.where(protocol: :activitypub).partitioned.find_each do |account|
next if account.updated_at >= skip_threshold || (account.last_webfingered_at.present? && account.last_webfingered_at >= skip_threshold)

code = 0
unless skip_domains.include?(account.domain)
begin
code = Request.new(:head, account.uri).perform(&:code)
Expand Down

0 comments on commit e2d246f

Please sign in to comment.