-use crate::{
- objects::{community::ApubCommunity, person::ApubPerson},
- protocol::activities::following::follow::FollowCommunity,
-};
-use activitystreams::{activity::kind::AcceptType, unparsed::Unparsed};
-use lemmy_apub_lib::object_id::ObjectId;
+use crate::{objects::community::ApubCommunity, protocol::activities::following::follow::Follow};
+use activitypub_federation::core::object_id::ObjectId;
+use activitystreams_kinds::activity::AcceptType;
use serde::{Deserialize, Serialize};
use url::Url;
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
-pub struct AcceptFollowCommunity {
+pub struct AcceptFollow {
pub(crate) actor: ObjectId<ApubCommunity>,
- pub(crate) to: [ObjectId<ApubPerson>; 1],
- pub(crate) object: FollowCommunity,
+ pub(crate) object: Follow,
#[serde(rename = "type")]
pub(crate) kind: AcceptType,
pub(crate) id: Url,
- #[serde(flatten)]
- pub(crate) unparsed: Unparsed,
}