Fix AP link serialization
This commit is contained in:
parent
045e885821
commit
0ac3cb4c0f
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue