Pleroma doesn't have a `fields` field here

Closes #86
master
Paul Woolcock 6 years ago
parent 33e74b4442
commit 2edebe90d1
  1. 2
      src/entities/account.rs

@ -74,7 +74,7 @@ pub struct Source {
#[serde(deserialize_with = "string_or_bool")] #[serde(deserialize_with = "string_or_bool")]
sensitive: bool, sensitive: bool,
note: String, note: String,
fields: Vec<MetadataField>, fields: Option<Vec<MetadataField>>,
} }
fn string_or_bool<'de, D: Deserializer<'de>>(val: D) -> ::std::result::Result<bool, D::Error> { fn string_or_bool<'de, D: Deserializer<'de>>(val: D) -> ::std::result::Result<bool, D::Error> {

Loading…
Cancel
Save