1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Workers.Mailer do
8 # Note: `max_attempts` is intended to be overridden in `new/1` call
11 max_attempts: Pleroma.Config.get([:workers, :retries, :compile_time_default])
14 def perform(%{"op" => "digest_email", "user_id" => user_id}) do
15 user = User.get_by_id(user_id)
16 Pleroma.DigestEmailWorker.perform(user)