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),
events: event_publisher,
federation: ap_service.clone() as Arc<dyn domain::ports::FederationActionPort>,
ap_repo: Arc::new(PgActivityPubRepository::new(pool.clone())),
};
Infrastructure { state, ap_service }