projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide totalItems field for featured collections
[akkoma]
/
lib
/
pleroma
/
workers
/
remote_fetcher_worker.ex
diff --git
a/lib/pleroma/workers/remote_fetcher_worker.ex
b/lib/pleroma/workers/remote_fetcher_worker.ex
index e860ca86955768a8f10588169ae8069baa5cb813..ad4d785a13ab09b7d3b204e98687a5732eeebc9e 100644
(file)
--- 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
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
21
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.RemoteFetcherWorker do
# 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
use Pleroma.Workers.WorkerHelper, queue: "remote_fetcher"
@impl Oban.Worker
- def perform(
- %{
- "op" => "fetch_remote",
- "id" => id
- } = args,
- _job
- ) do
+ def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
{:ok, _object} = Fetcher.fetch_object_from_id(id, depth: args["depth"])
end
end
{:ok, _object} = Fetcher.fetch_object_from_id(id, depth: args["depth"])
end
end