From 0873ff46f84b8f2815fdb773f0e110334922e8ea Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 15 Jul 2024 21:15:29 +0200 Subject: [PATCH] fix: its value not content --- upub/core/src/model/actor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upub/core/src/model/actor.rs b/upub/core/src/model/actor.rs index 93d0902..a36e14a 100644 --- a/upub/core/src/model/actor.rs +++ b/upub/core/src/model/actor.rs @@ -7,7 +7,7 @@ use crate::ext::{JsonVec, TypeName}; #[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub struct Field { pub name: String, - pub content: String, + pub value: String, pub verified_at: Option, #[serde(rename = "type")] @@ -24,7 +24,7 @@ impl From for Field { fn from(value: T) -> Self { Field { name: value.name().str().unwrap_or_default(), - content: value.content().str().unwrap_or_default(), + value: value.content().str().unwrap_or_default(), field_type: "PropertyValue".to_string(), // TODO can we try parsing this instead?? verified_at: None, // TODO where does verified_at come from? extend apb maybe }