Skip to content

Commit

Permalink
Fix NameError in Webfinger redirect handling in ActivityPub::FetchRem…
Browse files Browse the repository at this point in the history
…oteActorService (mastodon#20260)
  • Loading branch information
ClearlyClaire committed Nov 9, 2022
1 parent cd0a87f commit a539498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/activitypub/fetch_remote_actor_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def check_webfinger!
@username, @domain = split_acct(webfinger.subject)

unless confirmed_username.casecmp(@username).zero? && confirmed_domain.casecmp(@domain).zero?
raise Webfinger::RedirectError, "Too many webfinger redirects for URI #{uri} (stopped at #{@username}@#{@domain})"
raise Webfinger::RedirectError, "Too many webfinger redirects for URI #{@uri} (stopped at #{@username}@#{@domain})"
end

raise Error, "Webfinger response for #{@username}@#{@domain} does not loop back to #{@uri}" if webfinger.link('self', 'href') != @uri
Expand Down

0 comments on commit a539498

Please sign in to comment.