projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de6be63
)
user: hide virtual actors from statistics queries
author
William Pitcock
<nenolod@dereferenced.org>
Mon, 6 Aug 2018 10:44:25 +0000
(10:44 +0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Mon, 6 Aug 2018 11:29:01 +0000
(11:29 +0000)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 8d8c53dfc91463678816b674e08faf474cd9092c..5e46208c3dadd13f2532b35cf63a93c5eb1bb1ca 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-578,7
+578,11
@@
defmodule Pleroma.User do
end
def local_user_query() do
- from(u in User, where: u.local == true)
+ from(
+ u in User,
+ where: u.local == true,
+ where: not is_nil(u.nickname)
+ )
end
def deactivate(%User{} = user) do