forked from rDrama/rDrama
hide post title for the 3 restricted holes
parent
661646f134
commit
2d2a3520b3
|
@ -112,9 +112,10 @@ class Submission(Base):
|
||||||
link = f"/post/{self.id}"
|
link = f"/post/{self.id}"
|
||||||
if self.sub: link = f"/h/{self.sub}{link}"
|
if self.sub: link = f"/h/{self.sub}{link}"
|
||||||
|
|
||||||
output = title_regex.sub('', self.title.lower())
|
if self.sub and self.sub not in {'chudrama', 'countryclub', 'masterbaiters'}:
|
||||||
output = output.split()[:6]
|
output = title_regex.sub('', self.title.lower())
|
||||||
output = '-'.join(output)
|
output = output.split()[:6]
|
||||||
|
output = '-'.join(output)
|
||||||
|
|
||||||
if not output: output = '-'
|
if not output: output = '-'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue