From: William Pitcock Date: Mon, 6 Aug 2018 10:44:25 +0000 (+0000) Subject: user: hide virtual actors from statistics queries X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ecfd4b21066f7df7450d5aace403ac97c0d7778a;p=akkoma user: hide virtual actors from statistics queries --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 8d8c53dfc..5e46208c3 100644 --- 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