1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.FedSockets.IngesterWorker do
6 use Pleroma.Workers.WorkerHelper, queue: "ingestion_queue"
9 alias Pleroma.Web.Federator
12 def perform(%Job{args: %{"op" => "ingest", "object" => ingestee}}) do
19 Logger.error("IngesterWorker error - #{inspect(e)}")
24 defp do_ingestion(params) do
25 case Federator.incoming_ap_doc(params) do