From ddaaab115e7d9834448b31c18cfffa1e31c43705 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Mon, 3 Apr 2017 18:27:47 +0200 Subject: [PATCH] Use standard base url in User. --- lib/pleroma/user.ex | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 -- 2.45.2