From: Roman Chvanikov Date: Wed, 29 May 2019 18:31:27 +0000 (+0300) Subject: Replace Application.get_env/2 with Pleroma.Config.get/1 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5cee2fe9fea4f0c98acd49a2a288ecd44bce3d1f;p=akkoma Replace Application.get_env/2 with Pleroma.Config.get/1 --- 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)