mirror of
https://github.com/v0l/route96.git
synced 2025-06-17 00:28:50 +00:00
Compress images only for NIP-96 endpoint
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
use std::sync::{Mutex, RwLock};
|
||||
|
||||
use chrono::Utc;
|
||||
use log::error;
|
||||
use nostr::prelude::hex;
|
||||
@ -108,7 +106,7 @@ async fn upload(
|
||||
.unwrap_or("application/octet-stream".to_string());
|
||||
|
||||
match fs
|
||||
.put(data.open(ByteUnit::from(settings.max_upload_bytes)), &mime_type)
|
||||
.put(data.open(ByteUnit::from(settings.max_upload_bytes)), &mime_type, false)
|
||||
.await
|
||||
{
|
||||
Ok(blob) => {
|
||||
|
Reference in New Issue
Block a user