Skip to content

Commit

Permalink
Merge pull request #260 from runofthemillgeek/fix/never-expire-condition
Browse files Browse the repository at this point in the history
Fix never expire condition
  • Loading branch information
szabodanika authored Oct 24, 2024
2 parents 6f460ec + 92c0b54 commit 043eb67
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 043eb67

Please sign in to comment.