Skip to content

Commit 5cb0d08

Browse files
Gargronatsu1125
authored andcommitted
Fix nil error when trying to fetch key for signature verification (mastodon#17747)
1 parent 131212e commit 5cb0d08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/helpers/jsonld_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def supported_context?(json)
5454
end
5555

5656
def unsupported_uri_scheme?(uri)
57-
!uri.start_with?('http://', 'https://')
57+
uri.nil? || !uri.start_with?('http://', 'https://')
5858
end
5959

6060
def invalid_origin?(url)

0 commit comments

Comments
 (0)