Make Accept activities compatible with Mastodon

Why aren't you accepting IDs gargamel?
This commit is contained in:
Bat 2018-05-08 20:54:09 +01:00
parent 438f244d88
commit 743e6a23d4

View file

@ -29,7 +29,7 @@ impl Accept {
Accept { Accept {
id: format!("{}/accept/{}/{}", who.compute_id(conn), what.get_type().to_lowercase(), what.get_id()), id: format!("{}/accept/{}/{}", who.compute_id(conn), what.get_type().to_lowercase(), what.get_id()),
actor: serde_json::Value::String(who.compute_id(conn)), actor: serde_json::Value::String(who.compute_id(conn)),
object: serde_json::Value::String(what.get_id()), object: what.serialize(),
date: chrono::Utc::now() date: chrono::Utc::now()
} }
} }