feat: v2 rewrite — hexagonal arch, ActivityPub federation, NATS, deployment-ready #1

Merged
GKaszewski merged 334 commits from v2 into master 2026-05-16 09:42:43 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 00b369c6ad - Show all commits

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 }

View File

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