diff --git a/src/activitystream/node.rs b/src/activitystream/node.rs index 1b11e121..6fe783a0 100644 --- a/src/activitystream/node.rs +++ b/src/activitystream/node.rs @@ -94,8 +94,8 @@ impl From for Node { 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