Use standard base url in User.
This commit is contained in:
parent
4f7567b98c
commit
ddaaab115e
|
@ -16,12 +16,7 @@ defmodule Pleroma.User do
|
||||||
end
|
end
|
||||||
|
|
||||||
def ap_id(%User{nickname: nickname}) do
|
def ap_id(%User{nickname: nickname}) do
|
||||||
host =
|
"#{Pleroma.Web.base_url}/users/#{nickname}"
|
||||||
Application.get_env(:pleroma, Pleroma.Web.Endpoint)
|
|
||||||
|> Keyword.fetch!(:url)
|
|
||||||
|> Keyword.fetch!(:host)
|
|
||||||
|
|
||||||
"https://#{host}/users/#{nickname}"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def ap_followers(%User{} = user) do
|
def ap_followers(%User{} = user) do
|
||||||
|
|
Loading…
Reference in a new issue