Merge pull request #101 from albocc/feature/Add_3_days_expiration_option

Added expiration option for 3 days
This commit is contained in:
Dániel Szabó 2022-11-14 21:30:34 +02:00 committed by GitHub
commit 0a80ac1359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -81,6 +81,7 @@ pub async fn create(
"10min" => timenow + 60 * 10, "10min" => timenow + 60 * 10,
"1hour" => timenow + 60 * 60, "1hour" => timenow + 60 * 60,
"24hour" => timenow + 60 * 60 * 24, "24hour" => timenow + 60 * 60 * 24,
"3days" => timenow + 60 * 60 * 24 * 3,
"1week" => timenow + 60 * 60 * 24 * 7, "1week" => timenow + 60 * 60 * 24 * 7,
"never" => { "never" => {
if ARGS.no_eternal_pasta { if ARGS.no_eternal_pasta {

View file

@ -35,6 +35,13 @@
{%- endif %} {%- endif %}
24 hours 24 hours
</option> </option>
{% if args.default_expiry == "3days" %}
<option selected value="3days">
{%- else %}
<option value="3days">
{%- endif %}
3 days
</option>
{% if args.default_expiry == "1week" %} {% if args.default_expiry == "1week" %}
<option selected value="1week"> <option selected value="1week">
{%- else %} {%- else %}