1 use crate::generate_outbox_url;
2 use activitystreams_kinds::collection::OrderedCollectionType;
3 use lemmy_db_schema::source::person::Person;
4 use lemmy_utils::LemmyError;
5 use serde::{Deserialize, Serialize};
8 #[derive(Clone, Debug, Deserialize, Serialize)]
9 #[serde(rename_all = "camelCase")]
10 pub(crate) struct PersonOutbox {
11 r#type: OrderedCollectionType,
13 ordered_items: Vec<()>,
18 pub(crate) async fn new(user: Person) -> Result<PersonOutbox, LemmyError> {
20 r#type: OrderedCollectionType::OrderedCollection,
21 id: generate_outbox_url(&user.actor_id)?.into(),
22 ordered_items: vec![],