fix polls not appearing when making comment

pull/195/head
Aevann 2023-08-21 18:51:37 +03:00
parent 9f09ec82a9
commit 57d7342802
1 changed files with 2 additions and 0 deletions

View File

@ -412,6 +412,8 @@ def comment(v):
).one_or_none()
if n: g.db.delete(n)
g.db.flush()
if c.parent_post:
for sort in COMMENT_SORTS:
cache.delete(f'post_{c.parent_post}_{sort}')