X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fweb_finger%2Fweb_finger.ex;fp=lib%2Fpleroma%2Fweb%2Fweb_finger%2Fweb_finger.ex;h=1eb26a89fd19d5b355ac996b4407afee41705b50;hb=c48c381e909240dcece9f961e4728fa712d089cc;hp=5fa69c2c825b0179eeabd9bad069dcae87056f54;hpb=c85998ab8a21f042ab57345a7baa9e1e27c308d1;p=akkoma diff --git a/lib/pleroma/web/web_finger/web_finger.ex b/lib/pleroma/web/web_finger/web_finger.ex index 5fa69c2c8..1eb26a89f 100644 --- a/lib/pleroma/web/web_finger/web_finger.ex +++ b/lib/pleroma/web/web_finger/web_finger.ex @@ -1,15 +1,16 @@ defmodule Pleroma.Web.WebFinger do - alias Pleroma.XmlBuilder - alias Pleroma.{Repo, User} + + alias Pleroma.{Repo, User, XmlBuilder} + alias Pleroma.Web alias Pleroma.Web.{XML, Salmon, OStatus} require Logger - def host_meta() do - base_url = Pleroma.Web.base_url + def host_meta do + base_url = Web.base_url { - :XRD, %{ xmlns: "http://docs.oasis-open.org/ns/xri/xrd-1.0" }, + :XRD, %{xmlns: "http://docs.oasis-open.org/ns/xri/xrd-1.0"}, { - :Link, %{ rel: "lrdd", type: "application/xrd+xml", template: "#{base_url}/.well-known/webfinger?resource={uri}" } + :Link, %{rel: "lrdd", type: "application/xrd+xml", template: "#{base_url}/.well-known/webfinger?resource={uri}"} } } |> XmlBuilder.to_doc