forked from rDrama/rDrama
dont allow saves sorting in posts (it results in 500 error)
parent
3570c2304f
commit
c2d709e9ef
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue