Skip to content

Commit

Permalink
Limit max retention period to 5 years
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Feb 19, 2024
1 parent 3c47479 commit c152bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/globaleaks/handlers/recipient/rtip.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def db_postpone_expiration(session, itip, expiration_date):
:param itip: A submission model to be postponed
:param expiration_date: The date timestamp to be set in milliseconds
"""
max_date = time.time() + 3651 * 86400
max_date = time.time() + 1826 * 86400
max_date = max_date - max_date % 86400
expiration_date = expiration_date / 1000
expiration_date = expiration_date if expiration_date < max_date else max_date
Expand Down

0 comments on commit c152bb3

Please sign in to comment.