From 9e5672929b41f65a8ea1dfe096eac1b7f582a891 Mon Sep 17 00:00:00 2001 From: silverpill Date: Wed, 5 Apr 2023 16:38:37 +0000 Subject: [PATCH] Process incoming Move() activities in background --- CHANGELOG.md | 1 + src/activitypub/receiver.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a41dba8..aff32c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Increase maximum number of custom emojis per post to 50. - Validate actor aliases before saving into database. +- Process incoming `Move()` activities in background. ## [1.19.1] - 2023-03-31 diff --git a/src/activitypub/receiver.rs b/src/activitypub/receiver.rs index 10aa26e..1efee49 100644 --- a/src/activitypub/receiver.rs +++ b/src/activitypub/receiver.rs @@ -320,7 +320,7 @@ pub async fn receive_activity( }; }; - if let ANNOUNCE | CREATE | DELETE | UNDO | UPDATE = activity_type { + if let ANNOUNCE | CREATE | DELETE | MOVE | UNDO | UPDATE = activity_type { // Add activity to job queue and release lock IncomingActivityJobData::new(activity, is_authenticated) .into_job(db_client, 0).await?;