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.Publisher do
6 use Oban.Worker, queue: "federator_outgoing", max_attempts: 5
9 def perform(%Oban.Job{args: %{module: module_name, params: params}}) do
12 |> apply(:publish_one, [params])