feat(bootstrap): add ap_repo to AppState

This commit is contained in:
2026-05-14 22:16:20 +02:00
parent 8c931c9b98
commit 00b369c6ad
2 changed files with 2 additions and 0 deletions

View File

@@ -110,6 +110,7 @@ pub async fn build(cfg: &Config) -> Infrastructure {
hasher: Arc::new(auth::Argon2PasswordHasher), hasher: Arc::new(auth::Argon2PasswordHasher),
events: event_publisher, events: event_publisher,
federation: ap_service.clone() as Arc<dyn domain::ports::FederationActionPort>, federation: ap_service.clone() as Arc<dyn domain::ports::FederationActionPort>,
ap_repo: Arc::new(PgActivityPubRepository::new(pool.clone())),
}; };
Infrastructure { state, ap_service } Infrastructure { state, ap_service }

View File

@@ -20,4 +20,5 @@ pub struct AppState {
pub hasher: Arc<dyn PasswordHasher>, pub hasher: Arc<dyn PasswordHasher>,
pub events: Arc<dyn EventPublisher>, pub events: Arc<dyn EventPublisher>,
pub federation: Arc<dyn FederationActionPort>, pub federation: Arc<dyn FederationActionPort>,
pub ap_repo: Arc<dyn ActivityPubRepository>,
} }