diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-05-31 15:09:11 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-05-31 16:48:03 -0500 |
commit | 51a9f97e87823cbd9e92c375f4bc4c0bfa8b79db (patch) | |
tree | 5bdc8da18a07d4dfe7e6f05c435d078f45e4d0b7 /test/pleroma/web/common_api_test.exs | |
parent | 2e682788a30b225b67254e92d1807b317ede57f8 (diff) | |
download | pleroma-51a9f97e87823cbd9e92c375f4bc4c0bfa8b79db.tar.gz |
Deprecate Pleroma.Web.base_url/0
Use Pleroma.Web.Endpoint.url/0 directly instead. Reduces compiler cycles.
Diffstat (limited to 'test/pleroma/web/common_api_test.exs')
-rw-r--r-- | test/pleroma/web/common_api_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pleroma/web/common_api_test.exs b/test/pleroma/web/common_api_test.exs index adfe58def..5ab3a48ad 100644 --- a/test/pleroma/web/common_api_test.exs +++ b/test/pleroma/web/common_api_test.exs @@ -514,7 +514,7 @@ defmodule Pleroma.Web.CommonAPITest do {:ok, activity} = CommonAPI.post(user, %{status: "hey :blank:"}) assert %{"blank" => url} = Object.normalize(activity).data["emoji"] - assert url == "#{Pleroma.Web.base_url()}/emoji/blank.png" + assert url == "#{Pleroma.Web.Endpoint.url()}/emoji/blank.png" end test "deactivated users can't post" do |