Increase the freshness threshold for popular feeds

This commit is contained in:
vas3k
2020-01-10 09:38:13 +01:00
parent 0dba3be080
commit e079b89d05

View File

@@ -180,7 +180,7 @@ class Article(models.Model):
return self.created_at > now - timedelta(days=1)
elif frequency >= 100:
# extra high frequency — mark newest posts
return self.created_at > now - timedelta(hours=2)
return self.created_at > now - timedelta(hours=3)
# normal frequency - mark 6-hour old posts
return self.created_at > now - timedelta(hours=6)