diff --git a/files/classes/comment.py b/files/classes/comment.py index 637281e4a..f27499af9 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -34,7 +34,7 @@ class Comment(Base): over_18 = Column(Boolean, default=False) is_bot = Column(Boolean, default=False) is_pinned = Column(String(25)) - sentto=Column(Integer) + sentto=Column(Integer, ForeignKey("users.id")) notifiedto=Column(Integer) app_id = Column(Integer, ForeignKey("oauth_apps.id")) oauth_app = relationship("OauthApp", viewonly=True)