fix 500 error i introduced
parent
120fe920d7
commit
9456fa1aa6
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue