Deprecate Pleroma.Web.base_url/0

Use Pleroma.Web.Endpoint.url/0 directly instead. Reduces compiler cycles.
This commit is contained in:
Alex Gleason 2021-05-31 15:09:11 -05:00
commit 51a9f97e87
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
43 changed files with 93 additions and 96 deletions

View file

@ -25,7 +25,7 @@ defmodule Pleroma.Application do
if Process.whereis(Pleroma.Web.Endpoint) do
case Config.get([:http, :user_agent], :default) do
:default ->
info = "#{Pleroma.Web.base_url()} <#{Config.get([:instance, :email], "")}>"
info = "#{Pleroma.Web.Endpoint.url()} <#{Config.get([:instance, :email], "")}>"
named_version() <> "; " <> info
custom ->