From 1a8d9b6a0c152d1c8fd57fe4192570e42e7c9a7e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 1 Dec 2021 14:59:23 +0200 Subject: [PATCH] fdfd --- files/classes/comment.py | 8 ++++---- files/classes/mod_logs.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index b11502826..975264e7d 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -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"

{cc} ONLY

" + 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"

{cc} ONLY

" 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"

{cc} ONLY

" + 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"

{cc} ONLY

" body = self.body diff --git a/files/classes/mod_logs.py b/files/classes/mod_logs.py index e2310965e..e2ec233f6 100644 --- a/files/classes/mod_logs.py +++ b/files/classes/mod_logs.py @@ -6,8 +6,8 @@ from files.helpers.lazy import lazy from os import environ 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 ModAction(Base): __tablename__ = "modactions" @@ -82,7 +82,7 @@ class ModAction(Base): @lazy def string(self): - output = ACTIONTYPES[self.kind]["str"].format(self=self, cc=cc) + output = ACTIONTYPES[self.kind]["str"].format(self=self) if self.note: output += f" ({self.note})" @@ -93,7 +93,7 @@ class ModAction(Base): def target_link(self): if self.target_user: return f'{self.target_user.username}' elif self.target_post: - if self.target_post.club: return f'{cc.upper()} ONLY' + if self.target_post.club: return f'{cc} ONLY' return f'{self.target_post.title.replace("<","").replace(">","")}' elif self.target_comment_id: return f'comment'