forked from rDrama/rDrama
Fix comment rendering when pin.level > 1.
parent
26c725b2cd
commit
e896aaa1f7
|
@ -207,9 +207,9 @@ def post_id(pid, anything=None, v=None, sub=None):
|
|||
pin.stickied_utc = None
|
||||
g.db.add(pin)
|
||||
elif pin.level > 1:
|
||||
pinned2.add(pin.top_comment)
|
||||
pinned2.add(pin.top_comment(g.db))
|
||||
if pin.top_comment in comments:
|
||||
comments.remove(pin.top_comment)
|
||||
comments.remove(pin.top_comment(g.db))
|
||||
else:
|
||||
pinned2.add(pin)
|
||||
|
||||
|
|
|
@ -739,7 +739,7 @@
|
|||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% for comment in comments(g.db) if comment.can_see(v) %}
|
||||
{% for comment in comments if comment.can_see(v) %}
|
||||
{{single_comment(comment)}}
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue