From 05c8acc71e75c34621aa598458a4f12182c18b5c Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Sat, 3 Aug 2024 06:41:38 +0200 Subject: [PATCH] fix: add lysand inbox to actix --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 47affc6..43eefa8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ use clap::Parser; use database::Database; use entities::post; use http::{http_get_user, http_post_user_inbox, webfinger}; -use lysand::http::{create_activity, fetch_lysand_post, fetch_post, fetch_user, query_post}; +use lysand::http::{create_activity, fetch_lysand_post, fetch_post, fetch_user, lysand_inbox, query_post}; use objects::person::{DbUser, Person}; use sea_orm::{ActiveModelTrait, DatabaseConnection, Set}; use serde::{Deserialize, Serialize}; @@ -286,6 +286,7 @@ async fn main() -> actix_web::Result<(), anyhow::Error> { .wrap(prometheus.clone()) .wrap(FederationMiddleware::new(data.clone())) .service(post_manually) + .service(lysand_inbox) .service(follow_manually) .route("/{user}", web::get().to(http_get_user)) .route("/{user}/inbox", web::post().to(http_post_user_inbox))