Remove (admittedly funny) rDrama 'troll titles'

This commit is contained in:
Jack Byrne 2022-09-10 14:38:45 +01:00 committed by Ben Rog-Wilhelm
parent 38e263d931
commit 8c7c76feb6
2 changed files with 5 additions and 32 deletions

View file

@ -395,22 +395,14 @@ class Submission(Base):
@lazy @lazy
def realtitle(self, v): def realtitle(self, v):
if self.club and not (v and (v.paid_dues or v.id == self.author_id)): if self.title_html:
if v: return random.choice(TROLLTITLES).format(username=v.username) return self.title_html
else: return f'{CC} MEMBERS ONLY' else:
elif self.title_html: title = self.title_html return self.title
else: title = self.title
return title
@lazy @lazy
def plaintitle(self, v): def plaintitle(self, v):
if self.club and not (v and (v.paid_dues or v.id == self.author_id)): return self.title
if v: return random.choice(TROLLTITLES).format(username=v.username)
else: return f'{CC} MEMBERS ONLY'
else: title = self.title
return title
@property @property
@lazy @lazy

View file

@ -17,17 +17,6 @@ else: SITE_FULL = 'https://' + SITE
CC = "COUNTRY CLUB" CC = "COUNTRY CLUB"
CC_TITLE = CC.title() CC_TITLE = CC.title()
AJ_REPLACEMENTS = {
' your ': " you're ",
' to ': " too ",
' Your ': " You're ",
' To ': " Too ",
' YOUR ': " YOU'RE ",
' TO ': " TOO ",
}
NOTIFICATIONS_ID = 1 NOTIFICATIONS_ID = 1
AUTOJANNY_ID = 2 AUTOJANNY_ID = 2
SNAPPY_ID = 3 SNAPPY_ID = 3
@ -408,14 +397,6 @@ AWARDS3 = {}
for k, val in AWARDS2.items(): for k, val in AWARDS2.items():
if val['price'] == 300: AWARDS3[k] = val if val['price'] == 300: AWARDS3[k] = val
TROLLTITLES = [
"how will @{username} ever recover?",
"@{username} BTFO",
"[META] Getting really sick of @{username}s shit",
"Pretty sure this is @{username}'s Reddit account",
"Hey jannies can you please ban @{username}",
]
NOTIFIED_USERS = { NOTIFIED_USERS = {
'aevan': AEVANN_ID, 'aevan': AEVANN_ID,
'avean': AEVANN_ID, 'avean': AEVANN_ID,