webfinger: use https as default fallback instead of http
authorWilliam Pitcock <nenolod@dereferenced.org>
Fri, 1 Jun 2018 17:58:20 +0000 (17:58 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 6 Jun 2018 16:27:14 +0000 (16:27 +0000)
realistically, all instances need to be on https anyway to properly federate with all
software

lib/pleroma/web/web_finger/web_finger.ex

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