From 239bdcf97d3f2949bde153bcf10170a5b32a11e3 Mon Sep 17 00:00:00 2001 From: silverpill Date: Tue, 7 Feb 2023 00:03:41 +0000 Subject: [PATCH] Process Delete() and Undo() activities in background to preserve ordering --- src/activitypub/receiver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/receiver.rs b/src/activitypub/receiver.rs index 840a56c..9c362e6 100644 --- a/src/activitypub/receiver.rs +++ b/src/activitypub/receiver.rs @@ -318,7 +318,7 @@ pub async fn receive_activity( }; }; - if let ANNOUNCE | CREATE | UPDATE = activity_type { + if let ANNOUNCE | CREATE | DELETE | UNDO | UPDATE = activity_type { // Add activity to job queue and release lock IncomingActivityJobData::new(activity, is_authenticated) .into_job(db_client, 0).await?;