From d91fd48edf8241c5d0b7dc61c36fa2c3e8c1ccd4 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 6 Aug 2018 10:57:19 +0000 Subject: [PATCH] user: do not leak virtuals in account search --- lib/pleroma/user.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 5e46208c3..748fdbca4 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -499,7 +499,8 @@ def search(query, resolve) do u.nickname, u.name ) - } + }, + where: not is_nil(u.nickname) ) q =