Stats: Use invisible property for filtering.
This commit is contained in:
parent
8b88e2a6e2
commit
f5bda09de6
2 changed files with 1 additions and 3 deletions
|
|
@ -82,8 +82,7 @@ defmodule Pleroma.Stats do
|
|||
where: u.deactivated != true,
|
||||
where: u.local == true,
|
||||
where: not is_nil(u.nickname),
|
||||
where: fragment("? not like 'internal.%'", u.nickname),
|
||||
where: fragment("? not like '%/relay'", u.ap_id)
|
||||
where: not u.invisible
|
||||
)
|
||||
|
||||
user_count = Repo.aggregate(users_query, :count, :id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue