Skip to content

Commit dc9ed2e

Browse files
committed
fix(templates): guard against empty comments in single-thread title
1 parent e90439a commit dc9ed2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% import "utils.html" as utils %}
33

44
{% block title %}
5-
{% if single_thread %}
5+
{% if single_thread && !comments.is_empty() %}
66
{{ comments[0].author.name }} comments on {{ post.title }} - r/{{ post.community }}
77
{% else %}
88
{{ post.title }} - r/{{ post.community }}

0 commit comments

Comments
 (0)