make it so when u make a comment with polls, you see the polls immediately

(instead of needing to refresh)
remotes/1693045480750635534/spooky-22
Aevann1 2022-06-27 00:32:32 +02:00
parent b124afb60f
commit f48b16d0ca
1 changed files with 1 additions and 0 deletions

View File

@ -644,6 +644,7 @@ def api_comment(v):
parent_post.comment_count += 1
g.db.add(parent_post)
g.db.flush()
if request.headers.get("Authorization"): return c.json
return {"comment": render_template("comments.html", v=v, comments=[c], ajax=True)}