Fix AP link serialization

This commit is contained in:
Bat 2018-05-19 10:50:56 +01:00
parent 045e885821
commit 0ac3cb4c0f
1 changed files with 2 additions and 7 deletions

View File

@ -103,16 +103,11 @@ pub fn broadcast<A: Activity + Clone, S: sign::Signer, T: inbox::WithInbox + Act
} }
#[derive(Clone, Serialize, Deserialize)] #[derive(Clone, Serialize, Deserialize)]
pub struct Id { pub struct Id(String);
#[serde(flatten)]
id: String
}
impl Id { impl Id {
pub fn new<T: Into<String>>(id: T) -> Id { pub fn new<T: Into<String>>(id: T) -> Id {
Id { Id(id.into())
id: id.into()
}
} }
} }