fix: long uploads

This commit is contained in:
2024-06-18 16:01:23 +01:00
parent d18bb4d8a8
commit 79338256df
3 changed files with 14 additions and 8 deletions

View File

@ -1,6 +1,3 @@
use std::ops::Sub;
use std::time::Duration;
use base64::Engine;
use base64::prelude::BASE64_STANDARD;
use log::info;
@ -42,9 +39,6 @@ impl<'r> FromRequest<'r> for Nip98Auth {
"Created timestamp is in the future",
));
}
if event.created_at < Timestamp::now().sub(Duration::from_secs(60)) {
return Outcome::Error((Status::new(401), "Created timestamp is too old"));
}
// check url tag
if let Some(url) = event.tags.iter().find_map(|t| {