This commit is contained in:
Aevann1 2021-09-22 17:53:30 +02:00
parent aea719f074
commit 1cdd08b04e

View file

@ -114,7 +114,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
posts = g.db.query(Submission).options(lazyload('*'))
if t != 'day' and sort in ["hot","controversial"]:
if 'rdrama' in request.host and t != 'day' and sort in ["hot","controversial"]:
cutoff = int(time.time()) - 86400
posts = posts.filter(Submission.created_utc >= cutoff)
elif t != 'all':