refactor: move ap_service from AppState to AppContext.Services

This commit is contained in:
2026-07-10 15:34:23 +02:00
parent 322e9ee81a
commit 3ee75305a9
7 changed files with 21 additions and 19 deletions

View File

@@ -487,6 +487,8 @@ async fn test_app() -> Router {
document_parser: Arc::new(PanicDocumentParser),
review_logger: Arc::new(PanicReviewLogger),
person_enrichment: None,
#[cfg(feature = "federation")]
ap_service: Arc::new(activitypub::NoopActivityPubService),
},
config: AppConfig {
allow_registration: false,
@@ -501,8 +503,6 @@ async fn test_app() -> Router {
},
},
rss_renderer: Arc::new(RssAdapter::new("http://localhost:3000".into())),
#[cfg(feature = "federation")]
ap_service: Arc::new(activitypub::NoopActivityPubService),
};
routes::build_router(state, axum::Router::new())