user: hide virtual actors from statistics queries

This commit is contained in:
William Pitcock 2018-08-06 10:44:25 +00:00
parent de6be63b1b
commit ecfd4b2106

View file

@ -578,7 +578,11 @@ defmodule Pleroma.User do
end end
def local_user_query() do 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 end
def deactivate(%User{} = user) do def deactivate(%User{} = user) do