2 fetcher::object_id::ObjectId,
3 objects::{community::ApubCommunity, person::ApubPerson},
4 protocol::activities::following::follow::FollowCommunity,
6 use activitystreams::{activity::kind::UndoType, unparsed::Unparsed};
7 use lemmy_apub_lib::traits::ActivityFields;
8 use serde::{Deserialize, Serialize};
11 #[derive(Clone, Debug, Deserialize, Serialize, ActivityFields)]
12 #[serde(rename_all = "camelCase")]
13 pub struct UndoFollowCommunity {
14 pub(crate) actor: ObjectId<ApubPerson>,
15 pub(crate) to: [ObjectId<ApubCommunity>; 1],
16 pub(crate) object: FollowCommunity,
17 #[serde(rename = "type")]
18 pub(crate) kind: UndoType,
21 pub(crate) unparsed: Unparsed,