From 4e45e359b2e8e827f11b78a3bec84edba6458784 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 19 Mar 2024 07:38:12 +0100 Subject: [PATCH] fix: other way round, now correctly fetches --- src/activitystream/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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