diff --git a/files/classes/comment.py b/files/classes/comment.py index 4d4592eaf1..4601ad2d13 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -67,7 +67,6 @@ class Comment(Base): post = relationship("Submission", back_populates="comments") author = relationship("User", primaryjoin="User.id==Comment.author_id") senttouser = relationship("User", primaryjoin="User.id==Comment.sentto") - top_comment = relationship("Comment", primaryjoin="Comment.id==Comment.top_comment_id") parent_comment = relationship("Comment", remote_side=[id], back_populates="child_comments") child_comments = relationship("Comment", order_by="Comment.stickied, Comment.realupvotes.desc()", remote_side=[parent_comment_id], back_populates="parent_comment") awards = relationship("AwardRelationship", order_by="AwardRelationship.awarded_utc.desc()", back_populates="comment") diff --git a/files/templates/comments.html b/files/templates/comments.html index f168d4b4e0..1bb01ba3a1 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -15,7 +15,7 @@ {% include "popover.html" %} {% endif %} -{% macro single_comment(c, level=1) %} +{% macro single_comment(c, level=1, collapse=False) %} {% set ups=c.upvotes %} {% set downs=c.downvotes %} @@ -114,7 +114,7 @@ {% set isreply = False %} {% endif %} -