mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 17:03:59 +00:00
Nutomic
6f513793cb
* 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
21 lines
495 B
Rust
21 lines
495 B
Rust
use activitypub_federation::config::Data;
|
|
use lemmy_api_common::context::LemmyContext;
|
|
use lemmy_utils::{error::LemmyError, ConnectionId};
|
|
|
|
mod list_comments;
|
|
mod list_posts;
|
|
mod read_community;
|
|
mod read_person;
|
|
mod resolve_object;
|
|
mod search;
|
|
|
|
#[async_trait::async_trait]
|
|
pub trait PerformApub {
|
|
type Response: serde::ser::Serialize + Send;
|
|
|
|
async fn perform(
|
|
&self,
|
|
context: &Data<LemmyContext>,
|
|
websocket_id: Option<ConnectionId>,
|
|
) -> Result<Self::Response, LemmyError>;
|
|
}
|