projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply suggestion to lib/pleroma/web/twitter_api/views/remote_follow_view.ex
[akkoma]
/
lib
/
pleroma
/
daemons
/
digest_email_daemon.ex
diff --git
a/lib/pleroma/daemons/digest_email_daemon.ex
b/lib/pleroma/daemons/digest_email_daemon.ex
index 462ad2c55eaa5f3b0e9a7d5715bf1ef5f42d7cd2..b4c8eaad9470ce9f421981a24d6c763f7d7c0ed7 100644
(file)
--- a/
lib/pleroma/daemons/digest_email_daemon.ex
+++ b/
lib/pleroma/daemons/digest_email_daemon.ex
@@
-17,7
+17,7
@@
defmodule Pleroma.Daemons.DigestEmailDaemon do
now = NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second)
from(u in inactive_users_query,
now = NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second)
from(u in inactive_users_query,
- where: fragment(~s(?
#> '{"email_notifications","digest"}' @> 'true'), u.info
),
+ where: fragment(~s(?
->'digest' @> 'true'), u.email_notifications
),
where: u.last_digest_emailed_at < datetime_add(^now, ^negative_interval, "day"),
select: u
)
where: u.last_digest_emailed_at < datetime_add(^now, ^negative_interval, "day"),
select: u
)