Make it possible to bulk send confirmation emails to all unconfirmed users
This commit is contained in:
parent
7c055af567
commit
23ca5f75af
3 changed files with 37 additions and 2 deletions
|
|
@ -148,6 +148,10 @@ defmodule Pleroma.User.Query do
|
|||
|> where([u], not is_nil(u.nickname))
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue