[PR #145] Add max expiration option #178

Open
opened 2026-02-27 10:16:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/matze/wastebin/pull/145
Author: @cgzones
Created: 4/1/2025
Status: 🔄 Open

Base: masterHead: max_expire


📝 Commits (1)

📊 Changes

10 files changed (+158 additions, -25 deletions)

View changed files

📝 README.md (+1 -0)
📝 crates/wastebin_core/src/env.rs (+2 -0)
📝 crates/wastebin_server/src/env.rs (+12 -2)
📝 crates/wastebin_server/src/errors.rs (+3 -1)
📝 crates/wastebin_server/src/handlers/insert/api.rs (+85 -13)
📝 crates/wastebin_server/src/handlers/insert/form.rs (+7 -5)
📝 crates/wastebin_server/src/handlers/insert/mod.rs (+18 -0)
📝 crates/wastebin_server/src/main.rs (+10 -2)
📝 crates/wastebin_server/src/page.rs (+11 -1)
📝 crates/wastebin_server/src/test_helpers.rs (+9 -1)

📄 Description

Add an option to limit the maximum expiration time, especially for API requests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/matze/wastebin/pull/145 **Author:** [@cgzones](https://github.com/cgzones) **Created:** 4/1/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `max_expire` --- ### 📝 Commits (1) - [`c2b4ca7`](https://github.com/matze/wastebin/commit/c2b4ca713e10e65c6096fb9a12e6ebf3e75377f6) Add max expires ### 📊 Changes **10 files changed** (+158 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `crates/wastebin_core/src/env.rs` (+2 -0) 📝 `crates/wastebin_server/src/env.rs` (+12 -2) 📝 `crates/wastebin_server/src/errors.rs` (+3 -1) 📝 `crates/wastebin_server/src/handlers/insert/api.rs` (+85 -13) 📝 `crates/wastebin_server/src/handlers/insert/form.rs` (+7 -5) 📝 `crates/wastebin_server/src/handlers/insert/mod.rs` (+18 -0) 📝 `crates/wastebin_server/src/main.rs` (+10 -2) 📝 `crates/wastebin_server/src/page.rs` (+11 -1) 📝 `crates/wastebin_server/src/test_helpers.rs` (+9 -1) </details> ### 📄 Description Add an option to limit the maximum expiration time, especially for API requests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#178
No description provided.