]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/protocol/activities/following/undo_follow.rs
Implement federated user following (fixes #752) (#2577)
[lemmy.git] / crates / apub / src / protocol / activities / following / undo_follow.rs
index 38306b7c13696a9177e4935a8a255cd7dc8a3909..33308c24b6bc5e0eeee38c020595160ef9e54041 100644 (file)
@@ -1,7 +1,4 @@
-use crate::{
-  objects::person::ApubPerson,
-  protocol::{activities::following::follow::FollowCommunity, Unparsed},
-};
+use crate::{objects::person::ApubPerson, protocol::activities::following::follow::Follow};
 use activitypub_federation::core::object_id::ObjectId;
 use activitystreams_kinds::activity::UndoType;
 use serde::{Deserialize, Serialize};
@@ -9,13 +6,10 @@ use url::Url;
 
 #[derive(Clone, Debug, Deserialize, Serialize)]
 #[serde(rename_all = "camelCase")]
-pub struct UndoFollowCommunity {
+pub struct UndoFollow {
   pub(crate) actor: ObjectId<ApubPerson>,
-  pub(crate) object: FollowCommunity,
+  pub(crate) object: Follow,
   #[serde(rename = "type")]
   pub(crate) kind: UndoType,
   pub(crate) id: Url,
-
-  #[serde(flatten)]
-  pub(crate) unparsed: Unparsed,
 }