aboutsummaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-11-29 14:45:16 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2021-04-22 08:02:11 +0300
commit69f8f9446e862286d631b823e836d5fa049573ed (patch)
treed58ccf2bd2a2acb5d4aaba2cfea01be4b72ebb09 /config/config.exs
parentb050adb5e2d1add4cb2f5d24010ace33af16a381 (diff)
downloadpleroma-feature/2295-email-mention-notification.tar.gz
batch mention email notifications in timeframefeature/2295-email-mention-notification
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs
index 4381068ac..10b8498ef 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -563,10 +563,12 @@ config :pleroma, Oban,
remote_fetcher: 2,
attachments_cleanup: 1,
new_users_digest: 1,
- mute_expire: 5
+ mute_expire: 5,
+ email_mentions: 1
],
plugins: [Oban.Plugins.Pruner],
crontab: [
+ {"*/15 * * * *", Pleroma.Workers.Cron.EmailMentionsWorker},
{"0 0 * * 0", Pleroma.Workers.Cron.DigestEmailsWorker},
{"0 0 * * *", Pleroma.Workers.Cron.NewUsersDigestWorker}
]
@@ -851,6 +853,10 @@ config :pleroma, ConcurrentLimiter, [
{Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
]
+config :pleroma, Pleroma.Workers.Cron.EmailMentionsWorker,
+ enabled: false,
+ timeframe: 30
+
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"