mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 08:36:00 +03:00
[PR #62] [MERGED] Add maximum expiry #137
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/matze/wastebin/pull/62
Author: @HeapUnderfl0w
Created: 7/6/2024
Status: ✅ Merged
Merged: 7/10/2024
Merged by: @matze
Base:
master← Head:max-paste-expiry📝 Commits (2)
88ce98cAdd maximum expiry72e1d83apply review📊 Changes
8 files changed (+103 additions, -9 deletions)
View changed files
📝
README.md(+1 -0)📝
src/env.rs(+22 -0)📝
src/main.rs(+4 -0)📝
src/pages.rs(+60 -0)📝
src/routes/form.rs(+6 -0)📝
src/routes/json.rs(+7 -1)📝
src/test_helpers.rs(+1 -0)📝
templates/index.html(+2 -8)📄 Description
This aims to implement #54, and also be an improvement over #55.
Changes Made:
WASTEBIN_MAX_PASTE_EXPIRYWASTEBIN_MAX_PASTE_EXPIRATIONCurrently it simply clamps the expiry timenever expireif any limit is setburn, even if the limit is 0🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.