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

@@ -154,7 +154,7 @@ def delete_reply(id):
if reply is None or reply.thread != thread:
abort(404)
if thread.replies[0] == reply:
if thread.first_reply == reply:
flash(gettext("Cannot delete thread opening post!"), "danger")
return redirect(thread.getViewURL())