master
Aevann1 2021-12-19 00:17:00 +02:00
parent c3c18e512e
commit 177c280668
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ class Submission(Base):
@property
@lazy
def domain(self):
if self.url.startswith('/'): return site
domain = urlparse(self.url).netloc
if domain.startswith("www."): domain = domain.split("www.")[1]
return domain.replace("old.reddit.com", "reddit.com")