2 fetcher::post_or_comment::PostOrComment,
3 objects::{community::ApubCommunity, person::ApubPerson},
5 use activitypub_federation::{core::object_id::ObjectId, deser::helpers::deserialize_one};
6 use activitystreams_kinds::activity::FlagType;
7 use serde::{Deserialize, Serialize};
10 #[derive(Clone, Debug, Deserialize, Serialize)]
11 #[serde(rename_all = "camelCase")]
13 pub(crate) actor: ObjectId<ApubPerson>,
14 #[serde(deserialize_with = "deserialize_one")]
15 pub(crate) to: [ObjectId<ApubCommunity>; 1],
16 pub(crate) object: ObjectId<PostOrComment>,
17 pub(crate) summary: String,
18 #[serde(rename = "type")]
19 pub(crate) kind: FlagType,