Add Pleroma.Constants.as_local_public/0

This commit is contained in:
Egor Kislitsyn 2020-10-15 19:07:00 +04:00
commit 2a475622ee
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
7 changed files with 8 additions and 6 deletions

View file

@ -1752,7 +1752,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
"local_only" => "true"
})
local = Pleroma.Web.base_url() <> "/#Public"
local = Pleroma.Constants.as_local_public()
assert %{"content" => "cofe", "id" => id, "pleroma" => %{"local_only" => true}} =
json_response(conn_one, 200)