user: do not leak virtuals in account search
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 10:57:19 +0000 (10:57 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 11:29:02 +0000 (11:29 +0000)
lib/pleroma/user.ex

index 5e46208c3dadd13f2532b35cf63a93c5eb1bb1ca..748fdbca48ba8dc571d67df4134611f3fc65570a 100644 (file)
@@ -499,7 +499,8 @@ defmodule Pleroma.User do
               u.nickname,
               u.name
             )
-        }
+        },
+        where: not is_nil(u.nickname)
       )
 
     q =