Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2021-02-22 15:23:46 +01:00
56 changed files with 761 additions and 359 deletions

View File

@@ -88,7 +88,7 @@ class Webfinger
end
def standard_url
if @domain.ends_with? ".onion"
if @domain.end_with? ".onion"
"http://#{@domain}/.well-known/webfinger?resource=#{@uri}"
else
"https://#{@domain}/.well-known/webfinger?resource=#{@uri}"
@@ -96,7 +96,7 @@ class Webfinger
end
def host_meta_url
if @domain.ends_with? ".onion"
if @domain.end_with? ".onion"
"http://#{@domain}/.well-known/host-meta"
else
"https://#{@domain}/.well-known/host-meta"