This commit is contained in:
Aevann1 2021-10-23 16:35:35 +02:00
parent 495112c7c6
commit ff0abf6fd8
8 changed files with 26 additions and 24 deletions

View file

@ -293,9 +293,7 @@ class Comment(Base):
return data
def realbody(self, v):
if self.post and self.post.club and not (v and v.paid_dues):
if v: return f"<p>{v.username} dox/p>"
return "<p>COUNTRY CLUB ONLY</p>"
if self.post and self.post.club and not (v and v.paid_dues): return "<p>COUNTRY CLUB ONLY</p>"
body = self.body_html
@ -321,9 +319,7 @@ class Comment(Base):
return body
def plainbody(self, v):
if self.post and self.post.club and not (v and v.paid_dues):
if v: return f"<p>{v.username} dox/p>"
return "<p>COUNTRY CLUB ONLY</p>"
if self.post and self.post.club and not (v and v.paid_dues): return "<p>COUNTRY CLUB ONLY</p>"
body = self.body