Stats: return status counts by scope
This commit is contained in:
parent
38ad407395
commit
404a9ccb9a
4 changed files with 129 additions and 6 deletions
|
|
@ -58,7 +58,15 @@ defmodule Pleroma.Web.MastodonAPI.InstanceControllerTest do
|
|||
|
||||
assert stats
|
||||
assert stats["user_count"] == 1
|
||||
assert stats["status_count"] == 1
|
||||
|
||||
assert stats["status_count"] == %{
|
||||
"all" => 1,
|
||||
"direct" => 0,
|
||||
"private" => 0,
|
||||
"public" => 1,
|
||||
"unlisted" => 0
|
||||
}
|
||||
|
||||
assert stats["domain_count"] == 2
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue