Browse Source

Handle missing links in Webfinger response (#31030)

dariusk-working/4_3_0
Adam Niedzielski 2 years ago committed by GitHub
parent
commit
fa54b61216
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/lib/webfinger.rb

2
app/lib/webfinger.rb

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

Loading…
Cancel
Save