1 use activitypub_federation::kinds::collection::OrderedCollectionType;
2 use lemmy_utils::error::LemmyError;
3 use serde::{Deserialize, Serialize};
6 /// Empty placeholder outbox used for Person, Instance, which dont implement a proper outbox yet.
7 #[derive(Clone, Debug, Deserialize, Serialize)]
8 #[serde(rename_all = "camelCase")]
9 pub(crate) struct EmptyOutbox {
10 r#type: OrderedCollectionType,
12 ordered_items: Vec<()>,
17 pub(crate) fn new(outbox_id: Url) -> Result<EmptyOutbox, LemmyError> {
19 r#type: OrderedCollectionType::OrderedCollection,
21 ordered_items: vec![],