Homepage: Preload review information in queries

This commit is contained in:
rubenwardy
2022-11-18 21:15:46 +00:00
parent b72244398b
commit db8574ffe3
8 changed files with 24 additions and 13 deletions

View File

@@ -10,7 +10,7 @@
<h3 class="card-header">{{ self.title() }}</h3>
<div class="card-body markdown">
{{ thread.replies[0].comment | markdown }}
{{ thread.first_reply.comment | markdown }}
</div>
<div class="card-body">
<p>{{ _("Deleting is permanent") }}</p>

View File

@@ -36,7 +36,7 @@
</span>
{% endif %}
{% if r == r.thread.replies[0] %}
{% if r == r.thread.first_reply %}
<a class="badge badge-primary" href="{{ r.thread.getViewURL() }}">
{{ r.thread.title }}
</a>