Add formerType property to Tombstone object

This commit is contained in:
silverpill 2021-12-18 23:20:25 +00:00
parent d31d315517
commit 57ada55e8e

View file

@ -54,6 +54,9 @@ pub struct Object {
#[serde(skip_serializing_if = "Option::is_none")]
pub attachment: Option<Vec<Attachment>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub former_type: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub object: Option<String>,
@ -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(