diff options
author | Roman Chvanikov <chvanikoff@gmail.com> | 2019-05-29 21:31:27 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@gmail.com> | 2019-05-29 21:31:27 +0300 |
commit | 5cee2fe9fea4f0c98acd49a2a288ecd44bce3d1f (patch) | |
tree | db2fe30ab54e31a7cb4ec3f7098391121b58876e /lib | |
parent | ce47017c8927b8b2d31668d5e32e387d80739502 (diff) | |
download | pleroma-5cee2fe9fea4f0c98acd49a2a288ecd44bce3d1f.tar.gz |
Replace Application.get_env/2 with Pleroma.Config.get/1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/digest_email_worker.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/digest_email_worker.ex b/lib/pleroma/digest_email_worker.ex index 65013f77e..f7b3d81cd 100644 --- 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) |