fix
parent
ba0e3c74ed
commit
f9280f28ff
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue