projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HTTP: Implement max request limits
[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 dd13c3b17f490f95892cc86187fe7ef10f806add..ee646229f22a727f538e427f89a305e224bab1cf 100644
(file)
--- a/
lib/pleroma/workers/cron/digest_emails_worker.ex
+++ b/
lib/pleroma/workers/cron/digest_emails_worker.ex
@@
-19,7
+19,7
@@
defmodule Pleroma.Workers.Cron.DigestEmailsWorker do
require Logger
@impl Oban.Worker
- def perform(_
opts, _
job) do
+ def perform(_job) do
config = Config.get([:email_notifications, :digest])
if config[:active] do
@@
-37,6
+37,8
@@
defmodule Pleroma.Workers.Cron.DigestEmailsWorker do
)
|> Repo.all()
|> send_emails
+ else
+ :ok
end
end