forked from MarseyWorld/MarseyWorld
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
|
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)
|
||||||
|
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue