From 17c51b1ad03cd66e1f4e3f9683ae9b0a274ed5c9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 24 Sep 2021 05:00:54 +0200 Subject: [PATCH] fds --- files/classes/comment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index a8ff8652c..0395ac721 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -38,8 +38,8 @@ class Comment(Base): oauth_app = relationship("OauthApp", viewonly=True) upvotes = Column(Integer, default=1) downvotes = Column(Integer, default=0) - body = deferred(Column(String(10000))) - body_html = deferred(Column(String(20000))) + body = deferred(Column(String(20000))) + body_html = Column(String(40000)) ban_reason = Column(String(256)) post = relationship("Submission", viewonly=True) @@ -280,6 +280,7 @@ class Comment(Base): def realbody(self, v): if self.post and self.post.club and not (v and v.paid_dues): return "

COUNTRY CLUB ONLY

" + body = self.body_html if not v or v.slurreplacer: