diff options
author | rtkay123 <dev@kanjala.com> | 2025-07-16 20:24:52 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-07-16 20:24:52 +0200 |
commit | 5fdb24b6a2cef7964a049e789ed90f883221d657 (patch) | |
tree | 84b69fdb8faa859797b38b45f952b9c6d7c50165 /src/state.rs | |
parent | 0a3040fba40d42c62ea70b7ccbade28e43ebaad5 (diff) | |
download | sellershut-5fdb24b6a2cef7964a049e789ed90f883221d657.tar.bz2 sellershut-5fdb24b6a2cef7964a049e789ed90f883221d657.zip |
feat: activity
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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) |