summaryrefslogtreecommitdiff
path: root/src/handlers/admin.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2025-11-21 14:09:41 +0100
committerWriterV2 <primary-v2@protonmail.com>2025-11-21 14:09:41 +0100
commit66d7a13414e2b185df5155a83bbdb842d3618c27 (patch)
treef7ae4ea7a8d41c8741e9c296bb38bfccd3cadc52 /src/handlers/admin.rs
parent3262200e0ca378e433e5f05074416c4b8b83f23c (diff)
Remove story epub
Diffstat (limited to 'src/handlers/admin.rs')
-rw-r--r--src/handlers/admin.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/handlers/admin.rs b/src/handlers/admin.rs
index 6cc79c2..1cc3068 100644
--- a/src/handlers/admin.rs
+++ b/src/handlers/admin.rs
@@ -102,15 +102,6 @@ pub async fn upload_story(
return Ok(StatusCode::BAD_REQUEST.into_response());
};
- let epub = if let Some(epub_value) = form.get("epub") {
- let filename = format_filepath(name, "epub");
- let file = std::fs::File::create_new(filename)?;
- BufWriter::new(file).write_all(epub_value)?;
- epub_value.to_vec()
- } else {
- return Ok(StatusCode::BAD_REQUEST.into_response());
- };
-
let mut tags: Vec<&str> = Vec::new();
if let Some(tags_value) = form.get("tag") {
let tagstring = std::str::from_utf8(tags_value)?;
@@ -124,7 +115,6 @@ pub async fn upload_story(
pid: 0,
language,
pdf,
- epub,
};
let story = story_template