Merge branch 'frost' into feature-award-feature-flag
This commit is contained in:
commit
84e5c7c651
32 changed files with 248 additions and 526 deletions
|
@ -386,17 +386,10 @@ class Comment(Base):
|
|||
|
||||
def plainbody(self, v):
|
||||
if self.post and self.post.club and not (v and (v.paid_dues or v.id in [self.author_id, self.post.author_id])): return f"<p>{CC} ONLY</p>"
|
||||
|
||||
body = self.body
|
||||
|
||||
if not body: return ""
|
||||
|
||||
return body
|
||||
|
||||
def print(self):
|
||||
print(f'post: {self.id}, comment: {self.author_id}', flush=True)
|
||||
return ''
|
||||
|
||||
@lazy
|
||||
def collapse_for_user(self, v, path):
|
||||
if v and self.author_id == v.id: return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue