Commit ddaaab11 authored by lain's avatar lain
Browse files

Use standard base url in User.

parent 4f7567b9
...@@ -16,12 +16,7 @@ defmodule Pleroma.User do ...@@ -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)
end end
def ap_followers(%User{} = user) do def ap_followers(%User{} = user) do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment