diff --git a/src/activitypub/activity.rs b/src/activitypub/activity.rs index ecc7d78..5ba1f68 100644 --- a/src/activitypub/activity.rs +++ b/src/activitypub/activity.rs @@ -54,6 +54,9 @@ pub struct Object { #[serde(skip_serializing_if = "Option::is_none")] pub attachment: Option>, + #[serde(skip_serializing_if = "Option::is_none")] + pub former_type: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub object: Option, @@ -328,6 +331,7 @@ pub fn create_activity_delete_note( context: Some(json!(AP_CONTEXT)), id: object_id, object_type: TOMBSTONE.to_string(), + former_type: Some(NOTE.to_string()), ..Default::default() }; let activity = create_activity(