mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-24 11:00:34 +00:00
Fix the custom properties deserialization bug for Blogs as well
This commit is contained in:
parent
e7fd12ae6f
commit
0a1edba4b0
1 changed files with 4 additions and 1 deletions
|
@ -113,7 +113,10 @@ impl Blog {
|
|||
.send();
|
||||
match req {
|
||||
Ok(mut res) => {
|
||||
let json = serde_json::from_str(&res.text().unwrap()).unwrap();
|
||||
let text = &res.text().unwrap();
|
||||
let ap_sign: ApSignature = serde_json::from_str(text).unwrap();
|
||||
let mut json: CustomGroup = serde_json::from_str(text).unwrap();
|
||||
json.custom_props = ap_sign; // without this workaround, publicKey is not correctly deserialized
|
||||
Some(Blog::from_activity(conn, json, Url::parse(url.as_ref()).unwrap().host_str().unwrap().to_string()))
|
||||
},
|
||||
Err(_) => None
|
||||
|
|
Loading…
Reference in a new issue