pull/225/head
Aevann 2024-03-15 22:07:11 +02:00
parent ba0e3c74ed
commit f9280f28ff
2 changed files with 2 additions and 2 deletions

View File

@ -544,7 +544,7 @@ class Comment(Base):
@property @property
@lazy @lazy
def is_longpost(self): def is_longpost(self):
return len(self.body) >= 2000 return self.body and len(self.body) >= 2000
def pin_parents(self): def pin_parents(self):
c = self c = self

View File

@ -424,7 +424,7 @@ class Post(Base):
@property @property
@lazy @lazy
def is_longpost(self): def is_longpost(self):
return len(self.body) >= 2000 return self.body and len(self.body) >= 2000
@lazy @lazy
def hole_changable(self, v): def hole_changable(self, v):