webfinger: use https as default fallback instead of http

realistically, all instances need to be on https anyway to properly federate with all
software
This commit is contained in:
William Pitcock 2018-06-01 17:58:20 +00:00
parent aaa81d3540
commit 1abf0f3b3e

View file

@ -253,7 +253,7 @@ defmodule Pleroma.Web.WebFinger do
String.replace(template, "{uri}", URI.encode(account)) String.replace(template, "{uri}", URI.encode(account))
_ -> _ ->
"http://#{domain}/.well-known/webfinger?resource=acct:#{account}" "https://#{domain}/.well-known/webfinger?resource=acct:#{account}"
end end
with response <- with response <-