Skip to content

Commit

Permalink
Fix checking if tag's domain is available (mastodon#12265)
Browse files Browse the repository at this point in the history
Pretty much everything about that line was wrong!
  • Loading branch information
dwrss committed Dec 28, 2022
1 parent 65bdd81 commit decc0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/activitypub/activity/create.rb
Expand Up @@ -223,7 +223,7 @@ def process_mention(tag)

account = account_from_uri(tag['href'])
begin
return unless DeliveryFailureTracker.available?(@domain) || !account.nil
return unless account || DeliveryFailureTracker.available?(tag['href'])
account = ActivityPub::FetchRemoteAccountService.new.call(tag['href']) if account.nil?
rescue HTTP::ConnectionError => e
Rails.logger.info "Fetching account #{tag['href']} failed: #{e}"
Expand Down

0 comments on commit decc0bf

Please sign in to comment.