dont show pins when viewing effortposts

pull/222/head
Aevann 2024-02-07 01:03:39 +02:00
parent 87eb87b1da
commit 0c2ac46e2b
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ def front_all(v, hole=None):
if sort == 'hot': default = True
else: default = False
pins = session.get(f'{hole}_{sort}', default)
if effortposts_only:
pins = False
else:
pins = session.get(f'{hole}_{sort}', default)
if not v:
result = cache.get(f'frontpage_{sort}_{t}_{page}_{hole}_{pins}_{effortposts_only}')