user: hide virtual actors from statistics queries
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 10:44:25 +0000 (10:44 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 11:29:01 +0000 (11:29 +0000)
lib/pleroma/user.ex

index 8d8c53dfc91463678816b674e08faf474cd9092c..5e46208c3dadd13f2532b35cf63a93c5eb1bb1ca 100644 (file)
@@ -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