[#502] Fixed User.active_local_user_query to return users with nil or missing info.deactivated. Adjusted test.
This commit is contained in:
parent
d17a4b1891
commit
34d59e4008
2 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue