X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fworkers%2Fremote_fetcher_worker.ex;h=27e2e3386cec56a3f46cb7aea4f2cc04c3d086bd;hb=014f91c1c3504d7e1f4407491d42223c79c0de05;hp=52db6059b6f277f0ab646ebefc98f47105abe346;hpb=d458f4fdcafe847a7db8b1c663cfd945019816b7;p=akkoma
diff --git a/lib/pleroma/workers/remote_fetcher_worker.ex b/lib/pleroma/workers/remote_fetcher_worker.ex
index 52db6059b..27e2e3386 100644
--- a/lib/pleroma/workers/remote_fetcher_worker.ex
+++ b/lib/pleroma/workers/remote_fetcher_worker.ex
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.RemoteFetcherWorker do
@@ -8,13 +8,7 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do
use Pleroma.Workers.WorkerHelper, queue: "remote_fetcher"
@impl Oban.Worker
- def perform(
- %{
- "op" => "fetch_remote",
- "id" => id
- },
- _job
- ) do
- {:ok, _object} = Fetcher.fetch_object_from_id(id)
+ def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
+ {:ok, _object} = Fetcher.fetch_object_from_id(id, depth: args["depth"])
end
end