]> Untitled Git - lemmy.git/blob - 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
1 use crate::{objects::person::ApubPerson, protocol::activities::following::follow::Follow};
2 use activitypub_federation::core::object_id::ObjectId;
3 use activitystreams_kinds::activity::UndoType;
4 use serde::{Deserialize, Serialize};
5 use url::Url;
6
7 #[derive(Clone, Debug, Deserialize, Serialize)]
8 #[serde(rename_all = "camelCase")]
9 pub struct UndoFollow {
10   pub(crate) actor: ObjectId<ApubPerson>,
11   pub(crate) object: Follow,
12   #[serde(rename = "type")]
13   pub(crate) kind: UndoType,
14   pub(crate) id: Url,
15 }