From 743e6a23d4d099611a6741aa810b4187e61785f1 Mon Sep 17 00:00:00 2001 From: Bat Date: Tue, 8 May 2018 20:54:09 +0100 Subject: [PATCH] Make Accept activities compatible with Mastodon Why aren't you accepting IDs gargamel? --- src/activity_pub/activity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activity_pub/activity.rs b/src/activity_pub/activity.rs index 0532efae..a068ad02 100644 --- a/src/activity_pub/activity.rs +++ b/src/activity_pub/activity.rs @@ -29,7 +29,7 @@ impl Accept { Accept { id: format!("{}/accept/{}/{}", who.compute_id(conn), what.get_type().to_lowercase(), what.get_id()), actor: serde_json::Value::String(who.compute_id(conn)), - object: serde_json::Value::String(what.get_id()), + object: what.serialize(), date: chrono::Utc::now() } }