diff --git a/src/blurhash.rs b/src/blurhash.rs index 5f6246c..ec6570d 100644 --- a/src/blurhash.rs +++ b/src/blurhash.rs @@ -26,6 +26,10 @@ pub(crate) async fn generate( where S: Store + 'static, { + if state.config.server.danger_dummy_mode { + return Ok(String::from("LGF5?xYk^6AAAAAAAAAAAAAAAAAA")); + } + let permit = crate::process_semaphore().acquire().await?; let blurhash = do_generate(state, hash, original_details)