1 use activitypub_federation::config::Data;
2 use lemmy_api_common::context::LemmyContext;
3 use lemmy_utils::{error::LemmyError, ConnectionId};
12 #[async_trait::async_trait]
13 pub trait PerformApub {
14 type Response: serde::ser::Serialize + Send;
18 context: &Data<LemmyContext>,
19 websocket_id: Option<ConnectionId>,
20 ) -> Result<Self::Response, LemmyError>;