mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-12 23:38:20 +00:00
Handle missing links in Webfinger response (#31030)
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user