]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/protocol/activities/voting/undo_vote.rs
Handle Like, Undo/Like activities from Mastodon, add tests (fixes #2378) (#2380)
[lemmy.git] / crates / apub / src / protocol / activities / voting / undo_vote.rs
index 77e526884624270084915aa0532ae3e238ef2dce..6c43f48922fc64a3809591cbc5512a298dbf47e8 100644 (file)
@@ -11,10 +11,8 @@ use url::Url;
 #[serde(rename_all = "camelCase")]
 pub struct UndoVote {
   pub(crate) actor: ObjectId<ApubPerson>,
-  #[serde(deserialize_with = "deserialize_one_or_many")]
-  pub(crate) to: Vec<Url>,
   pub(crate) object: Vote,
-  #[serde(deserialize_with = "deserialize_one_or_many")]
+  #[serde(deserialize_with = "deserialize_one_or_many", default)]
   pub(crate) cc: Vec<Url>,
   #[serde(rename = "type")]
   pub(crate) kind: UndoType,