Compare commits

...

2 commits

Author SHA1 Message Date
feld c7aa8bb9b0 Merge branch 'new_users_digest' into 'develop'
New Users Digest should not contain users that have applied but not yet been approved

See merge request pleroma/pleroma!3868
2024-04-18 14:16:44 +00:00
Mark Felder 5d7cec5107 New Users Digest should not contain users that have applied but not yet been approved 2023-04-06 14:40:04 +00:00

View file

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