Skip to content

Commit

Permalink
Fix never expire condition
Browse files Browse the repository at this point in the history
  • Loading branch information
runofthemillgeek committed Apr 9, 2024
1 parent b8a0c54 commit 92c0b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ pub fn expiration_to_timestamp(expiration: &str, timenow: i64) -> i64 {
"1week" => timenow + 60 * 60 * 24 * 7,
"never" => {
if ARGS.eternal_pasta {
timenow + 60 * 60 * 24 * 7
} else {
0
} else {
timenow + 60 * 60 * 24 * 7
}
}
_ => {
Expand Down

0 comments on commit 92c0b54

Please sign in to comment.