fix: other way round, now correctly fetches

This commit is contained in:
əlemi 2024-03-19 07:38:12 +01:00
parent 3a53c6a2ed
commit 4e45e359b2
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -94,8 +94,8 @@ impl From<serde_json::Value> for Node<serde_json::Value> {
match value {
serde_json::Value::String(uri) => Node::Link(Box::new(uri)),
serde_json::Value::Object(_) => match value.get("href") {
Some(_) => Node::Object(value),
None => Node::Link(Box::new(value)),
None => Node::Object(value),
Some(_) => Node::Link(Box::new(value)),
},
serde_json::Value::Array(arr) => Node::Array(
arr