Use any custom WebFinger domain for page metadata
This commit is contained in:
parent
153539a246
commit
54fdf3a5de
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ defmodule Pleroma.Web.Metadata.Utils do
|
|||
def user_name_string(user) do
|
||||
"#{user.name} " <>
|
||||
if user.local do
|
||||
"(@#{user.nickname}@#{Pleroma.Web.Endpoint.host()})"
|
||||
"(@#{user.nickname}@#{Pleroma.Web.WebFinger.domain()})"
|
||||
else
|
||||
"(@#{user.nickname})"
|
||||
end
|
||||
|
|
|
@ -96,7 +96,7 @@ defmodule Pleroma.Web.WebFinger do
|
|||
|> XmlBuilder.to_doc()
|
||||
end
|
||||
|
||||
defp domain do
|
||||
def domain do
|
||||
Pleroma.Config.get([__MODULE__, :domain]) || Pleroma.Web.Endpoint.host()
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue