From: Roger Braun Date: Mon, 3 Apr 2017 16:27:47 +0000 (+0200) Subject: Use standard base url in User. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ddaaab115e7d9834448b31c18cfffa1e31c43705;p=akkoma Use standard base url in User. --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 67f590ee8..c77704db0 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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