-use crate::{
- fetcher::object_id::ObjectId,
- objects::{community::ApubCommunity, person::ApubPerson},
- protocol::activities::following::follow::FollowCommunity,
-};
-use activitystreams::{activity::kind::UndoType, unparsed::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};
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) to: [ObjectId<ApubCommunity>; 1],
- 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,
}