projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
giant massive dep upgrade and dialyxir-found error emporium (#371)
[akkoma]
/
lib
/
pleroma
/
object.ex
diff --git
a/lib/pleroma/object.ex
b/lib/pleroma/object.ex
index a75d85c474ef2d5f0a32c37153377e0c90848305..844251a18fe795a30946b0f09635352e83cc7f83 100644
(file)
--- a/
lib/pleroma/object.ex
+++ b/
lib/pleroma/object.ex
@@
-240,7
+240,7
@@
defmodule Pleroma.Object do
{:ok, _} <- invalid_object_cache(object) do
cleanup_attachments(
Config.get([:instance, :cleanup_attachments]),
{:ok, _} <- invalid_object_cache(object) do
cleanup_attachments(
Config.get([:instance, :cleanup_attachments]),
- %{
"object" =>
object}
+ %{
object:
object}
)
{:ok, object, deleted_activity}
)
{:ok, object, deleted_activity}
@@
-249,7
+249,7
@@
defmodule Pleroma.Object do
@spec cleanup_attachments(boolean(), %{required(:object) => map()}) ::
{:ok, Oban.Job.t() | nil}
@spec cleanup_attachments(boolean(), %{required(:object) => map()}) ::
{:ok, Oban.Job.t() | nil}
- def cleanup_attachments(true, %{
"object" =>
_} = params) do
+ def cleanup_attachments(true, %{
object:
_} = params) do
AttachmentsCleanupWorker.enqueue("cleanup_attachments", params)
end
AttachmentsCleanupWorker.enqueue("cleanup_attachments", params)
end