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
def realtitle(self, v):
if self.club and not (v and (v.paid_dues or v.id == self.author_id)):
if v: return random.choice(TROLLTITLES).format(username=v.username)
else: return f'{CC} MEMBERS ONLY'
elif self.title_html: title = self.title_html
else: title = self.title
return title
if self.title_html:
return self.title_html
else:
return self.title
@lazy
def plaintitle(self, v):
if self.club and not (v and (v.paid_dues or v.id == self.author_id)):
if v: return random.choice(TROLLTITLES).format(username=v.username)
else: return f'{CC} MEMBERS ONLY'
else: title = self.title
return title
return self.title
@property
@lazy