Make it possible to bulk send confirmation emails to all unconfirmed users

This commit is contained in:
Mark Felder 2020-09-08 16:39:08 -05:00
commit 23ca5f75af
3 changed files with 37 additions and 2 deletions

View file

@ -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