From 5fdb24b6a2cef7964a049e789ed90f883221d657 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Wed, 16 Jul 2025 20:24:52 +0200 Subject: feat: activity --- src/state.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 1ae6caa..9129030 100644 --- a/src/state.rs +++ b/src/state.rs @@ -18,6 +18,7 @@ impl Deref for AppHandle { pub struct AppState { pub services: Services, + pub environment: Environment, } impl AppState { @@ -38,7 +39,10 @@ impl AppState { let config = FederationConfig::builder() .domain(&warden_config.hostname) .signed_fetch_actor(&user) - .app_data(AppHandle(Arc::new(Self { services }))) + .app_data(AppHandle(Arc::new(Self { + services, + environment: configuration.application.env, + }))) // .url_verifier(Box::new(MyUrlVerifier())) // TODO: could change this to env variable? .debug(configuration.application.env == Environment::Development) -- cgit v1.2.3