This commit is contained in:
Aevann1 2021-12-30 07:27:22 +02:00
parent 7930ba017a
commit 9f989e912e
124 changed files with 488 additions and 486 deletions

View file

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