Process Announce() and Update() activities in background jobs
This commit is contained in:
parent
50b8ad9de4
commit
a85eaabf2f
1 changed files with 2 additions and 2 deletions
|
@ -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(());
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue