This commit is contained in:
Aevann1 2021-12-01 14:59:23 +02:00
parent 2e202b3c2f
commit ba286d52b2
2 changed files with 8 additions and 8 deletions

View file

@ -13,8 +13,8 @@ from .flags import CommentFlag
from random import randint
site = environ.get("DOMAIN").strip()
if site == 'pcmemes.net': cc = "splash mountain"
else: cc = "country club"
if site == 'pcmemes.net': cc = "SPLASH MOUNTAIN"
else: cc = "COUNTRY CLUB"
class Comment(Base):
@ -305,7 +305,7 @@ class Comment(Base):
return data
def realbody(self, v):
if self.post and self.post.club and not (v and v.paid_dues): return f"<p>{cc} ONLY</p>"
if self.post and self.post.club and not (v and v.paid_dues) and not (v and v.id == self.author_id): return f"<p>{cc} ONLY</p>"
body = self.body_html
@ -342,7 +342,7 @@ class Comment(Base):
return body
def plainbody(self, v):
if self.post and self.post.club and not (v and v.paid_dues): return f"<p>{cc} ONLY</p>"
if self.post and self.post.club and not (v and v.paid_dues) and not (v and v.id == self.author_id): return f"<p>{cc} ONLY</p>"
body = self.body