fix 500 error i introduced

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-23 20:05:11 +02:00
parent 120fe920d7
commit 9456fa1aa6
1 changed files with 1 additions and 1 deletions

View File

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