Fix comment rendering when pin.level > 1.

remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-11-15 05:29:47 -05:00
parent 26c725b2cd
commit e896aaa1f7
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 3 additions and 3 deletions

View File

@ -207,9 +207,9 @@ def post_id(pid, anything=None, v=None, sub=None):
pin.stickied_utc = None pin.stickied_utc = None
g.db.add(pin) g.db.add(pin)
elif pin.level > 1: elif pin.level > 1:
pinned2.add(pin.top_comment) pinned2.add(pin.top_comment(g.db))
if pin.top_comment in comments: if pin.top_comment in comments:
comments.remove(pin.top_comment) comments.remove(pin.top_comment(g.db))
else: else:
pinned2.add(pin) pinned2.add(pin)

View File

@ -739,7 +739,7 @@
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{% for comment in comments(g.db) if comment.can_see(v) %} {% for comment in comments if comment.can_see(v) %}
{{single_comment(comment)}} {{single_comment(comment)}}
{% endfor %} {% endfor %}