mirror of
https://github.com/mastodon/mastodon.git
synced 2025-03-22 12:45:45 +01:00
Handle missing links in Webfinger response (#31030)
This commit is contained in:
parent
c27d194eb2
commit
fa54b61216
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||||
|
|
Loading…
Add table
Reference in a new issue