Handle missing links in Webfinger response (#31030)

pull/31039/head
Adam Niedzielski 2024-07-16 15:21:16 +02:00 committed by GitHub
parent c27d194eb2
commit fa54b61216
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class Webfinger
private private
def links def links
@links ||= @json['links'].index_by { |link| link['rel'] } @links ||= @json.fetch('links', []).index_by { |link| link['rel'] }
end end
def validate_response! def validate_response!