projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
search: fix 'following' query parameter
[akkoma]
/
lib
/
pleroma
/
workers
/
transmogrifier_worker.ex
diff --git
a/lib/pleroma/workers/transmogrifier_worker.ex
b/lib/pleroma/workers/transmogrifier_worker.ex
index 6f5c1a2f29cd184aa3fa822651d339cd5a1e201e..15f36375c23c522af79715717c9ac3e80268f09a 100644
(file)
--- a/
lib/pleroma/workers/transmogrifier_worker.ex
+++ b/
lib/pleroma/workers/transmogrifier_worker.ex
@@
-1,17
+1,14
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.TransmogrifierWorker do
alias Pleroma.User
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Workers.TransmogrifierWorker do
alias Pleroma.User
- # Note: `max_attempts` is intended to be overridden in `new/2` call
- use Oban.Worker,
- queue: "transmogrifier",
- max_attempts: 1
+ use Pleroma.Workers.WorkerHelper, queue: "transmogrifier"
@impl Oban.Worker
@impl Oban.Worker
- def perform(%
{"op" => "user_upgrade", "user_id" => user_id}, _job
) do
+ def perform(%
Job{args: %{"op" => "user_upgrade", "user_id" => user_id}}
) do
user = User.get_cached_by_id(user_id)
Pleroma.Web.ActivityPub.Transmogrifier.perform(:user_upgrade, user)
end
user = User.get_cached_by_id(user_id)
Pleroma.Web.ActivityPub.Transmogrifier.perform(:user_upgrade, user)
end