From a85eaabf2fb55571dde5a83bea7a8941cabebbc6 Mon Sep 17 00:00:00 2001 From: silverpill Date: Mon, 12 Dec 2022 18:11:48 +0000 Subject: [PATCH] Process Announce() and Update() activities in background jobs --- src/activitypub/receiver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activitypub/receiver.rs b/src/activitypub/receiver.rs index 844996f..118312b 100644 --- a/src/activitypub/receiver.rs +++ b/src/activitypub/receiver.rs @@ -316,11 +316,11 @@ pub async fn receive_activity( }; }; - if activity_type == CREATE { + if let ANNOUNCE | CREATE | UPDATE = activity_type { // Add activity to job queue and release lock IncomingActivity::new(activity, is_authenticated) .enqueue(db_client, 0).await?; - log::info!("activity added to the queue: {}", activity_type); + log::debug!("activity added to the queue: {}", activity_type); return Ok(()); };