forked from rDrama/rDrama
1
0
Fork 0

dont allow saves sorting in posts (it results in 500 error)

master
Aevann 2023-07-17 20:32:41 +03:00
parent 3570c2304f
commit c2d709e9ef
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ def post_id(pid, v, anything=None, sub=None):
else: defaultsortingcomments = "hot"
sort = request.values.get("sort", defaultsortingcomments)
if sort == 'saves':
sort = defaultsortingcomments
if not v:
result = cache.get(f'post_{p.id}_{sort}')
if result: