aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-01-22 17:12:53 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-01-22 17:12:53 +0300
commit34d59e40086ad8adc020bac6d23ab2aa835f267b (patch)
treece75583e3b6db0c4d530caeb1c61037647f603ac /lib
parentd17a4b18919d05411602454f624381db2a2ac8c7 (diff)
downloadpleroma-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.ex2
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