Added expiration option for 3 days
This commit is contained in:
parent
76cfc906ef
commit
4fcd4e9e19
2 changed files with 8 additions and 0 deletions
|
@ -81,6 +81,7 @@ pub async fn create(
|
|||
"10min" => timenow + 60 * 10,
|
||||
"1hour" => timenow + 60 * 60,
|
||||
"24hour" => timenow + 60 * 60 * 24,
|
||||
"3days" => timenow + 60 * 60 * 24 * 3,
|
||||
"1week" => timenow + 60 * 60 * 24 * 7,
|
||||
"never" => {
|
||||
if ARGS.no_eternal_pasta {
|
||||
|
|
|
@ -35,6 +35,13 @@
|
|||
{%- endif %}
|
||||
24 hours
|
||||
</option>
|
||||
{% if args.default_expiry == "3days" %}
|
||||
<option selected value="3days">
|
||||
{%- else %}
|
||||
<option value="3days">
|
||||
{%- endif %}
|
||||
3 days
|
||||
</option>
|
||||
{% if args.default_expiry == "1week" %}
|
||||
<option selected value="1week">
|
||||
{%- else %}
|
||||
|
|
Loading…
Reference in a new issue