2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2025-01-30 13:11:37 +00:00

Add danger-dummy-mode blurhash implementation

This commit is contained in:
asonix 2025-01-24 15:19:06 -06:00
parent b5d0a0fe32
commit ec9e21f318

View file

@ -26,6 +26,10 @@ pub(crate) async fn generate<S>(
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)