From efa9bbc6e5ea755ceb4152fea85555f6f844354a Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sat, 16 May 2026 02:52:58 +0200 Subject: [PATCH] feat(bootstrap): inject TagRepository into ThoughtsObjectHandler --- crates/bootstrap/src/factory.rs | 1 + crates/worker/src/factory.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/bootstrap/src/factory.rs b/crates/bootstrap/src/factory.rs index a0e7fe3..55306a6 100644 --- a/crates/bootstrap/src/factory.rs +++ b/crates/bootstrap/src/factory.rs @@ -77,6 +77,7 @@ pub async fn build(cfg: &Config) -> Infrastructure { Arc::new(PgActivityPubRepository::new(pool.clone())), &cfg.base_url, Some(event_publisher.clone()), + Arc::new(postgres::tag::PgTagRepository::new(pool.clone())), )), cfg.base_url.clone(), cfg.allow_registration, diff --git a/crates/worker/src/factory.rs b/crates/worker/src/factory.rs index 95b279c..bc43891 100644 --- a/crates/worker/src/factory.rs +++ b/crates/worker/src/factory.rs @@ -49,6 +49,7 @@ pub async fn build(database_url: &str, base_url: &str, nats_url: &str) -> Worker Arc::new(PgActivityPubRepository::new(pool.clone())), base_url, None, + Arc::new(postgres::tag::PgTagRepository::new(pool.clone())), )), base_url.to_string(), false,