make sure comments a person makes that have level 10 aren't hidden

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-30 07:17:33 +02:00
parent b013964c89
commit b036e24005
2 changed files with 3 additions and 3 deletions

View File

@ -638,7 +638,7 @@ def comment(v):
g.db.flush()
if request.headers.get("Authorization"): return c.json
return {"comment": render_template("comments.html", v=v, comments=[c], ajax=True)}
return {"comment": render_template("comments.html", v=v, comments=[c], ajax=True, new_comment=True)}

View File

@ -88,7 +88,7 @@
</div>
{% if render_replies %}
{% if level<9 or request.path.startswith('/notifications') or request.headers.get("xhr") %}
{% if new_comment or level<9 or request.path.startswith('/notifications') or request.headers.get("xhr") %}
<div id="replies-of-{{c.fullname}}">
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}
@ -603,7 +603,7 @@
{% endif %}
{% if render_replies %}
{% if level<9 or request.path.startswith('/notifications') or request.headers.get("xhr") %}
{% if new_comment or level<9 or request.path.startswith('/notifications') or request.headers.get("xhr") %}
<div id="replies-of-{{c.fullname}}">
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}