projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/2189-unpin-activity' into 'develop'
[akkoma]
/
lib
/
pleroma
/
user
/
query.ex
diff --git
a/lib/pleroma/user/query.ex
b/lib/pleroma/user/query.ex
index 193b90d9d65e077d0b20d789afd843f62ff85758..2440bf890c1adf275b7341019f0e4738eb0bca46 100644
(file)
--- a/
lib/pleroma/user/query.ex
+++ b/
lib/pleroma/user/query.ex
@@
-110,12
+110,12
@@
defmodule Pleroma.User.Query do
where(query, [u], fragment("? && ?", u.tags, ^tags))
end
where(query, [u], fragment("? && ?", u.tags, ^tags))
end
- defp compose_query({:is_admin,
_
}, query) do
- where(query, [u], u.is_admin)
+ defp compose_query({:is_admin,
bool
}, query) do
+ where(query, [u], u.is_admin
== ^bool
)
end
end
- defp compose_query({:is_moderator,
_
}, query) do
- where(query, [u], u.is_moderator)
+ defp compose_query({:is_moderator,
bool
}, query) do
+ where(query, [u], u.is_moderator
== ^bool
)
end
defp compose_query({:super_users, _}, query) do
end
defp compose_query({:super_users, _}, query) do
@@
-148,6
+148,10
@@
defmodule Pleroma.User.Query do
where(query, [u], u.deactivated == ^true)
end
where(query, [u], u.deactivated == ^true)
end
+ defp compose_query({:confirmation_pending, bool}, query) do
+ where(query, [u], u.confirmation_pending == ^bool)
+ end
+
defp compose_query({:need_approval, _}, query) do
where(query, [u], u.approval_pending)
end
defp compose_query({:need_approval, _}, query) do
where(query, [u], u.approval_pending)
end