mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 22:07:52 -04:00
New Users Digest should not contain users that have applied but not yet been approved
This commit is contained in:
parent
b7a831ca55
commit
5d7cec5107
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ defmodule Pleroma.Workers.Cron.NewUsersDigestWorker do
|
|||
order_by: :inserted_at
|
||||
}
|
||||
|> User.Query.build()
|
||||
|> where([u], u.inserted_at >= ^a_day_ago and u.inserted_at < ^today)
|
||||
|> where([u], u.inserted_at >= ^a_day_ago and u.inserted_at < ^today and u.is_approved)
|
||||
|> Repo.all()
|
||||
|> Enum.map(fn user ->
|
||||
latest_status =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue