From be055d1d82bd934d64591da97c2f53f8f0de34cd Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 15 Oct 2022 23:57:55 -0700 Subject: [PATCH] fix "52yr ago" bug --- files/helpers/sorting_and_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sorting_and_time.py b/files/helpers/sorting_and_time.py index 5895aa4e5..2cefff115 100644 --- a/files/helpers/sorting_and_time.py +++ b/files/helpers/sorting_and_time.py @@ -47,7 +47,7 @@ def sort_objects(sort, objects, cls, include_shadowbanned=False): return objects.order_by(cls.downvotes - cls.upvotes, cls.created_utc.desc()) def make_age_string(compare:Optional[int]) -> str: - if not compare: return "never" + if not compare or compare < 1577865600: return "" age = int(time.time()) - compare if age < 60: