Comments: Fix exceptions when ctoken metadata are missing (None)

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor
2021-08-07 14:36:11 -07:00
committed by Jesús
parent 7720f3bde5
commit bee14ea9ea
2 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{% set page_title = ('Replies' if comments_info['is_replies'] else 'Comments page ' + comments_info['page_number']) %}
{% set page_title = ('Replies' if comments_info['is_replies'] else 'Comments page ' + comments_info['page_number']|string) %}
{% import "comments.html" as comments with context %}
{% if not slim %}