2 objects::{community::ApubCommunity, person::ApubPerson},
3 protocol::activities::following::follow::Follow,
5 use activitypub_federation::{fetch::object_id::ObjectId, kinds::activity::AcceptType};
6 use serde::{Deserialize, Serialize};
9 #[derive(Clone, Debug, Deserialize, Serialize)]
10 #[serde(rename_all = "camelCase")]
11 pub struct AcceptFollow {
12 pub(crate) actor: ObjectId<ApubCommunity>,
13 /// Optional, for compatibility with platforms that always expect recipient field
14 pub(crate) to: Option<[ObjectId<ApubPerson>; 1]>,
15 pub(crate) object: Follow,
16 #[serde(rename = "type")]
17 pub(crate) kind: AcceptType,