Commit ecfd4b21 authored by kaniini's avatar kaniini

user: hide virtual actors from statistics queries

parent de6be63b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment