Serialize activities IDs
This commit is contained in:
parent
b92009f487
commit
293ab658f4
@ -47,6 +47,7 @@ impl Activity for Accept {
|
|||||||
fn serialize(&self) -> serde_json::Value {
|
fn serialize(&self) -> serde_json::Value {
|
||||||
json!({
|
json!({
|
||||||
"type": "Accept",
|
"type": "Accept",
|
||||||
|
"id": self.id,
|
||||||
"actor": self.actor,
|
"actor": self.actor,
|
||||||
"object": self.object,
|
"object": self.object,
|
||||||
"published": self.date.to_rfc3339()
|
"published": self.date.to_rfc3339()
|
||||||
@ -85,6 +86,7 @@ impl Activity for Create {
|
|||||||
fn serialize(&self) -> serde_json::Value {
|
fn serialize(&self) -> serde_json::Value {
|
||||||
json!({
|
json!({
|
||||||
"type": "Create",
|
"type": "Create",
|
||||||
|
"id": self.id,
|
||||||
"actor": self.actor,
|
"actor": self.actor,
|
||||||
"object": self.object,
|
"object": self.object,
|
||||||
"published": self.date.to_rfc3339()
|
"published": self.date.to_rfc3339()
|
||||||
@ -133,6 +135,7 @@ impl Activity for Follow {
|
|||||||
fn serialize(&self) -> serde_json::Value {
|
fn serialize(&self) -> serde_json::Value {
|
||||||
json!({
|
json!({
|
||||||
"type": "Follow",
|
"type": "Follow",
|
||||||
|
"id": self.id,
|
||||||
"actor": self.actor,
|
"actor": self.actor,
|
||||||
"object": self.object
|
"object": self.object
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user