forked from MarseyWorld/MarseyWorld
make sure comments a person makes that have level 10 aren't hidden
parent
b013964c89
commit
b036e24005
|
@ -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)}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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)}}
|
||||
|
|
Loading…
Reference in New Issue