forked from rDrama/rDrama
fix shadow leak
parent
1769c762b0
commit
71ce22b026
|
@ -13,6 +13,8 @@
|
||||||
|
|
||||||
{% macro single_comment(c, level=1, collapse=False) %}
|
{% macro single_comment(c, level=1, collapse=False) %}
|
||||||
|
|
||||||
|
{% if user_can_see(v, c) %}
|
||||||
|
|
||||||
{% set ups=c.upvotes %}
|
{% set ups=c.upvotes %}
|
||||||
{% set downs=c.downvotes %}
|
{% set downs=c.downvotes %}
|
||||||
{% set score=ups-downs %}
|
{% set score=ups-downs %}
|
||||||
|
@ -706,9 +708,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% for comment in comments if user_can_see(v, comment) %}
|
{% for comment in comments %}
|
||||||
{{single_comment(comment)}}
|
{{single_comment(comment)}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue