feat(bootstrap): add ap_repo to AppState
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user