1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

Use standard base url in User.

This commit is contained in:
Roger Braun 2017-04-03 18:27:47 +02:00
parent 4f7567b98c
commit ddaaab115e

View file

@ -16,12 +16,7 @@ defmodule Pleroma.User do
end
def ap_id(%User{nickname: nickname}) do
host =
Application.get_env(:pleroma, Pleroma.Web.Endpoint)
|> Keyword.fetch!(:url)
|> Keyword.fetch!(:host)
"https://#{host}/users/#{nickname}"
"#{Pleroma.Web.base_url}/users/#{nickname}"
end
def ap_followers(%User{} = user) do