diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-22 17:12:53 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-01-22 17:12:53 +0300 |
commit | 34d59e40086ad8adc020bac6d23ab2aa835f267b (patch) | |
tree | ce75583e3b6db0c4d530caeb1c61037647f603ac /lib | |
parent | d17a4b18919d05411602454f624381db2a2ac8c7 (diff) | |
download | pleroma-34d59e40086ad8adc020bac6d23ab2aa835f267b.tar.gz |
[#502] Fixed User.active_local_user_query to return users with nil or missing `info.deactivated`. Adjusted test.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/user.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 06084b117..18137106e 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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 |