Process Announce() and Update() activities in background jobs

This commit is contained in:
silverpill 2022-12-12 18:11:48 +00:00
parent 50b8ad9de4
commit a85eaabf2f

View file

@ -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(());
};