diff --git a/files/classes/comment.py b/files/classes/comment.py index e08924219..f27499af9 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -47,7 +47,7 @@ class Comment(Base): post = relationship("Submission", viewonly=True) flags = relationship("CommentFlag", lazy="dynamic", viewonly=True) author = relationship("User", primaryjoin="User.id==Comment.author_id") - sendtouser = relationship("User", primaryjoin="User.id==Comment.sentto") + senttouser = relationship("User", primaryjoin="User.id==Comment.sentto", viewonly=True) parent_comment = relationship("Comment", remote_side=[id], viewonly=True) child_comments = relationship("Comment", remote_side=[parent_comment_id], viewonly=True) awards = relationship("AwardRelationship", viewonly=True)