Skip to content

Commit

Permalink
fix: add lysand inbox to actix
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Aug 3, 2024
1 parent f480bc0 commit 05c8acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 05c8acc

Please sign in to comment.