[#502] Fixed User.active_local_user_query to return users with nil or missing info.deactivated. Adjusted test.

This commit is contained in:
Ivan Tashkinov 2019-01-22 17:12:53 +03:00
commit 34d59e4008
2 changed files with 12 additions and 1 deletions

View file

@ -901,7 +901,7 @@ defmodule Pleroma.User do
def active_local_user_query do
from(
u in local_user_query(),
where: fragment("?->'deactivated' @> 'false'", u.info)
where: fragment("not (?->'deactivated' @> 'true')", u.info)
)
end