Use any custom WebFinger domain for page metadata

This commit is contained in:
Walter Huf 2023-01-22 09:32:58 -08:00
parent 153539a246
commit 54fdf3a5de
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ def scrub_html(content), do: content
def user_name_string(user) do def user_name_string(user) do
"#{user.name} " <> "#{user.name} " <>
if user.local do if user.local do
"(@#{user.nickname}@#{Pleroma.Web.Endpoint.host()})" "(@#{user.nickname}@#{Pleroma.Web.WebFinger.domain()})"
else else
"(@#{user.nickname})" "(@#{user.nickname})"
end end

View file

@ -96,7 +96,7 @@ def represent_user(user, "XML") do
|> XmlBuilder.to_doc() |> XmlBuilder.to_doc()
end end
defp domain do def domain do
Pleroma.Config.get([__MODULE__, :domain]) || Pleroma.Web.Endpoint.host() Pleroma.Config.get([__MODULE__, :domain]) || Pleroma.Web.Endpoint.host()
end end