projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b221d77
)
Fix Activity.delete_all_by_object_ap_id/1 timeout so users can be deleted
author
Alex Gleason
<alex@alexgleason.me>
Mon, 12 Jul 2021 21:20:15 +0000
(16:20 -0500)
committer
Alex Gleason
<alex@alexgleason.me>
Mon, 12 Jul 2021 21:20:15 +0000
(16:20 -0500)
lib/pleroma/activity.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/activity.ex
b/lib/pleroma/activity.ex
index 6542e684e1c82ef04794010889b4b774188a331a..0d2cb91cdf47044d66f7ed12fd34c8cccf46055c 100644
(file)
--- a/
lib/pleroma/activity.ex
+++ b/
lib/pleroma/activity.ex
@@
-286,7
+286,7
@@
defmodule Pleroma.Activity do
|> Queries.by_object_id()
|> Queries.exclude_type("Delete")
|> select([u], u)
- |> Repo.delete_all()
+ |> Repo.delete_all(
timeout: :infinity
)
|> elem(1)
|> Enum.find(fn
%{data: %{"type" => "Create", "object" => ap_id}} when is_binary(ap_id) -> ap_id == id