projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce47017
)
Replace Application.get_env/2 with Pleroma.Config.get/1
author
Roman Chvanikov
<chvanikoff@gmail.com>
Wed, 29 May 2019 18:31:27 +0000
(21:31 +0300)
committer
Roman Chvanikov
<chvanikoff@gmail.com>
Wed, 29 May 2019 18:31:27 +0000
(21:31 +0300)
lib/pleroma/digest_email_worker.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/digest_email_worker.ex
b/lib/pleroma/digest_email_worker.ex
index 65013f77e1d5745806bd72dbdb098797cf3a773c..f7b3d81cd66a61f2e580fc8a4a4a90b34d5908fc 100644
(file)
--- a/
lib/pleroma/digest_email_worker.ex
+++ b/
lib/pleroma/digest_email_worker.ex
@@
-2,7
+2,7
@@
defmodule Pleroma.DigestEmailWorker do
import Ecto.Query
def run do
- config =
Application.get_env(:pleroma, :email_notifications)[:digest]
+ config =
Pleroma.Config.get([:email_notifications, :digest])
negative_interval = -Map.fetch!(config, :interval)
inactivity_threshold = Map.fetch!(config, :inactivity_threshold)
inactive_users_query = Pleroma.User.list_inactive_users_query(inactivity_threshold)