From 293ab658f46538361b565174d48f314f23a3dfd6 Mon Sep 17 00:00:00 2001 From: Bat Date: Thu, 3 May 2018 23:40:43 +0100 Subject: [PATCH] Serialize activities IDs --- src/activity_pub/activity.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/activity_pub/activity.rs b/src/activity_pub/activity.rs index adc7e8c8..ef62893c 100644 --- a/src/activity_pub/activity.rs +++ b/src/activity_pub/activity.rs @@ -47,6 +47,7 @@ impl Activity for Accept { fn serialize(&self) -> serde_json::Value { json!({ "type": "Accept", + "id": self.id, "actor": self.actor, "object": self.object, "published": self.date.to_rfc3339() @@ -85,6 +86,7 @@ impl Activity for Create { fn serialize(&self) -> serde_json::Value { json!({ "type": "Create", + "id": self.id, "actor": self.actor, "object": self.object, "published": self.date.to_rfc3339() @@ -133,6 +135,7 @@ impl Activity for Follow { fn serialize(&self) -> serde_json::Value { json!({ "type": "Follow", + "id": self.id, "actor": self.actor, "object": self.object })