forked from alemi/upub
fix: other way round, now correctly fetches
This commit is contained in:
parent
3a53c6a2ed
commit
4e45e359b2
1 changed files with 2 additions and 2 deletions
|
@ -94,8 +94,8 @@ impl From<serde_json::Value> for Node<serde_json::Value> {
|
||||||
match value {
|
match value {
|
||||||
serde_json::Value::String(uri) => Node::Link(Box::new(uri)),
|
serde_json::Value::String(uri) => Node::Link(Box::new(uri)),
|
||||||
serde_json::Value::Object(_) => match value.get("href") {
|
serde_json::Value::Object(_) => match value.get("href") {
|
||||||
Some(_) => Node::Object(value),
|
None => Node::Object(value),
|
||||||
None => Node::Link(Box::new(value)),
|
Some(_) => Node::Link(Box::new(value)),
|
||||||
},
|
},
|
||||||
serde_json::Value::Array(arr) => Node::Array(
|
serde_json::Value::Array(arr) => Node::Array(
|
||||||
arr
|
arr
|
||||||
|
|
Loading…
Reference in a new issue