2
2
mirror of https://github.com/mastodon/mastodon synced 2025-04-12 00:56:38 +02:00

Fix nil error when trying to fetch key for signature verification ()

This commit is contained in:
Eugen Rochko 2022-03-12 09:02:24 +01:00 committed by GitHub
parent 642528f455
commit 883099f3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,7 @@ module JsonLdHelper
end
def unsupported_uri_scheme?(uri)
!uri.start_with?('http://', 'https://')
uri.nil? || !uri.start_with?('http://', 'https://')
end
def invalid_origin?(url)