diff options
author | Paul Woolcock <paul@woolcock.us> | 2018-09-18 20:40:24 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2018-09-18 21:47:58 -0400 |
commit | 2edebe90d1ae8ded6157f8a10324cdca6b91e788 (patch) | |
tree | f4299f89f251a2868cdda28ed5ce1cbab76443f6 | |
parent | 33e74b4442833c20ebcd2de45f9e1a99c80a5a7e (diff) |
Pleroma doesn't have a `fields` field here
Closes #86
-rw-r--r-- | src/entities/account.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/account.rs b/src/entities/account.rs index 604f9fd..0027d5b 100644 --- a/src/entities/account.rs +++ b/src/entities/account.rs @@ -74,7 +74,7 @@ pub struct Source { #[serde(deserialize_with = "string_or_bool")] sensitive: bool, 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> { |