Process inbound Delete activities at lowest priority

This commit is contained in:
Mark Felder 2023-12-09 18:40:29 -05:00
parent 94daa3e8c1
commit d417f73218
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ def incoming_ap_doc(%{params: params, req_headers: req_headers}) do
) )
end end
def incoming_ap_doc(%{"type" => "Delete"} = params) do
ReceiverWorker.enqueue("incoming_ap_doc", %{"params" => params}, priority: 3)
end
def incoming_ap_doc(params) do def incoming_ap_doc(params) do
ReceiverWorker.enqueue("incoming_ap_doc", %{"params" => params}) ReceiverWorker.enqueue("incoming_ap_doc", %{"params" => params})
end end