Process Delete() and Undo() activities in background to preserve ordering

This commit is contained in:
silverpill 2023-02-07 00:03:41 +00:00
parent 4d271353c4
commit 239bdcf97d

View file

@ -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?;