mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-11 01:49:21 +00:00
* update activitypub-federation crate to 0.4.0 * fixes * apub compiles! * everything compiling! * almost done, federated follow failing * some test fixes * use release * add code back in
15 lines
487 B
Rust
15 lines
487 B
Rust
use crate::{objects::person::ApubPerson, protocol::activities::following::follow::Follow};
|
|
use activitypub_federation::{fetch::object_id::ObjectId, kinds::activity::UndoType};
|
|
use serde::{Deserialize, Serialize};
|
|
use url::Url;
|
|
|
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct UndoFollow {
|
|
pub(crate) actor: ObjectId<ApubPerson>,
|
|
pub(crate) object: Follow,
|
|
#[serde(rename = "type")]
|
|
pub(crate) kind: UndoType,
|
|
pub(crate) id: Url,
|
|
}
|