Fix templates
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% elif meta.in_reply_to_self %}
|
{% elif meta.in_reply_to_self %}
|
||||||
<div style="margin:10px 0 15px 0;padding:0;">
|
<div style="margin:10px 0 15px 0;padding:0;">
|
||||||
self reply
|
<a href="{{ obj.inReplyTo }}">self reply</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@@ -247,6 +247,9 @@ def get_answer_count(choice, obj, meta):
|
|||||||
if option.get("name") == choice:
|
if option.get("name") == choice:
|
||||||
return option.get("replies", {}).get("totalItems", 0)
|
return option.get("replies", {}).get("totalItems", 0)
|
||||||
|
|
||||||
|
_logger.warning(f"invalid poll data {choice} {obj} {meta}")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
@filters.app_template_filter()
|
@filters.app_template_filter()
|
||||||
def get_total_answers_count(obj, meta):
|
def get_total_answers_count(obj, meta):
|
||||||
|
Reference in New Issue
Block a user