Add formerType property to Tombstone object
This commit is contained in:
parent
d31d315517
commit
57ada55e8e
1 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue