projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'stable' into release/2.0.0
[akkoma]
/
lib
/
pleroma
/
workers
/
cron
/
digest_emails_worker.ex
diff --git
a/lib/pleroma/workers/cron/digest_emails_worker.ex
b/lib/pleroma/workers/cron/digest_emails_worker.ex
index c589a59eb8da754feef4ea1a419ad7d4eb93c193..dd13c3b17f490f95892cc86187fe7ef10f806add 100644
(file)
--- a/
lib/pleroma/workers/cron/digest_emails_worker.ex
+++ b/
lib/pleroma/workers/cron/digest_emails_worker.ex
@@
-31,6
+31,7
@@
defmodule Pleroma.Workers.Cron.DigestEmailsWorker do
from(u in inactive_users_query,
where: fragment(~s(? ->'digest' @> 'true'), u.email_notifications),
+ where: not is_nil(u.email),
where: u.last_digest_emailed_at < datetime_add(^now, ^negative_interval, "day"),
select: u
)