]> cat aescling's git repositories - mastodon.git/commitdiff
Fix nil error when trying to fetch key for signature verification (#17747)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 12 Mar 2022 08:02:24 +0000 (09:02 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Mar 2022 08:02:24 +0000 (09:02 +0100)
app/helpers/jsonld_helper.rb

index c6557817d0a4813a4d3ad19365d56450249ea52f..ef16eef0864ae2814536c58614929833a15dd60d 100644 (file)
@@ -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)