mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-02-12 17:15:17 +00:00
Pass through the local instance name
This commit is contained in:
parent
a9e6444b83
commit
326bd24964
1 changed files with 2 additions and 1 deletions
|
@ -1036,13 +1036,14 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
|
|||
|
||||
test "status visibility count", %{conn: conn} do
|
||||
user = insert(:user)
|
||||
instance = Pleroma.Web.Endpoint.url() |> String.split("//") |> Enum.at(1)
|
||||
CommonAPI.post(user, %{visibility: "public", status: "hey"})
|
||||
CommonAPI.post(user, %{visibility: "unlisted", status: "hey"})
|
||||
CommonAPI.post(user, %{visibility: "unlisted", status: "hey"})
|
||||
|
||||
response =
|
||||
conn
|
||||
|> get("/api/pleroma/admin/stats")
|
||||
|> get("/api/pleroma/admin/stats", %{"instance" => instance})
|
||||
|> json_response(200)
|
||||
|
||||
assert %{"direct" => 0, "private" => 0, "public" => 1, "unlisted" => 2} =
|
||||
|
|
Loading…
Reference in a new issue