diff --git a/scipost/templates/scipost/comments_block.html b/scipost/templates/scipost/comments_block.html
index ab747cde47c99ed3296cbf17e46fe296e51d1c24..f37f9b939cd8943e339686cd9d47f5aa7f120e2c 100644
--- a/scipost/templates/scipost/comments_block.html
+++ b/scipost/templates/scipost/comments_block.html
@@ -53,7 +53,7 @@
 
     {% for reply in author_replies %}
     {% if reply.in_reply_to_comment %}
-    {% if reply.in_reply_to_comment.id = comment.id %}
+    {% if reply.in_reply_to_comment.id == comment.id %}
     <div class="row">
       <div class="col-1"></div>
       <hr style="border-style: dotted;" />
diff --git a/submissions/templates/submissions/submission_detail.html b/submissions/templates/submissions/submission_detail.html
index 55794e1f7f9cc0d66eb71cf5373e93d029669a73..53a0a20cc0a51c90a196d65f5312a509b63b2904 100644
--- a/submissions/templates/submissions/submission_detail.html
+++ b/submissions/templates/submissions/submission_detail.html
@@ -154,7 +154,7 @@
 
     {% for reply in author_replies %}
     {% if reply.in_reply_to_report %}
-    {% if reply.in_reply_to_report.id = report.id %}
+    {% if reply.in_reply_to_report.id == report.id %}
     <div class="row">
       <div class="col-1"></div>
       <hr style="border-style: dotted;" />
@@ -229,7 +229,7 @@
 
     {% for reply in author_replies %}
     {% if reply.in_reply_to_report %}
-    {% if reply.in_reply_to_report.id = report.id %}
+    {% if reply.in_reply_to_report.id == report.id %}
     <div class="row">
       <div class="col-1"></div>
       <hr style="border-style: dotted;" />