Fix Activity.delete_all_by_object_ap_id/1 timeout so users can be deleted
This commit is contained in:
parent
b221d77a6d
commit
9a0cb34c8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user