mirror of
https://github.com/v0l/route96.git
synced 2025-06-17 12:16:35 +00:00
fix: long uploads
This commit is contained in:
@ -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| {
|
||||
|
Reference in New Issue
Block a user