projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
InstanceView: Expose background image link.
[akkoma]
/
lib
/
pleroma
/
stats.ex
diff --git
a/lib/pleroma/stats.ex
b/lib/pleroma/stats.ex
index 6763786a7696a8a7a09332e1585fd8a345446a25..6b3a8a41f738801e8ffc0817d066cd3212d0ef74 100644
(file)
--- a/
lib/pleroma/stats.ex
+++ b/
lib/pleroma/stats.ex
@@
-82,8
+82,7
@@
defmodule Pleroma.Stats do
where: u.deactivated != true,
where: u.local == true,
where: not is_nil(u.nickname),
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)
)
user_count = Repo.aggregate(users_query, :count, :id)
@@
-92,7
+91,7
@@
defmodule Pleroma.Stats do
peers: peers,
stats: %{
domain_count: domain_count,
peers: peers,
stats: %{
domain_count: domain_count,
- status_count: status_count,
+ status_count: status_count
|| 0
,
user_count: user_count
}
}
user_count: user_count
}
}