mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Update deps
This commit is contained in:
@@ -63,5 +63,5 @@ pub async fn get_books(
|
||||
("uploaded_lte", uploaded_lte)
|
||||
];
|
||||
|
||||
_make_request(format!("/api/v1/books/base/").as_str(), params).await
|
||||
_make_request("/api/v1/books/base/", params).await
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ impl BookWithRemote {
|
||||
let mut author_parts_len = 3;
|
||||
|
||||
for author_caption in author_captions {
|
||||
if caption_title.len() + author_parts_len + author_caption.len() + 1 <= 1024 {
|
||||
if caption_title.len() + author_parts_len + author_caption.len() < 1024 {
|
||||
author_parts_len = author_caption.len() + 1;
|
||||
author_parts.push(author_caption);
|
||||
} else {
|
||||
|
||||
@@ -83,12 +83,12 @@ async fn get_link(
|
||||
Ok(data) => {
|
||||
match data {
|
||||
Some(data) => Json(data).into_response(),
|
||||
None => return StatusCode::NO_CONTENT.into_response(),
|
||||
None => StatusCode::NO_CONTENT.into_response(),
|
||||
}
|
||||
},
|
||||
Err(err) => {
|
||||
log::error!("{:?}", err);
|
||||
return StatusCode::NO_CONTENT.into_response();
|
||||
StatusCode::NO_CONTENT.into_response()
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user