forked from rDrama/rDrama
fix 500 error i introduced
parent
120fe920d7
commit
9456fa1aa6
|
@ -197,7 +197,7 @@ class Submission(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def domain(self):
|
def domain(self):
|
||||||
if not self.url: return None
|
if not self.url: return ''
|
||||||
if self.url.startswith('/'): return SITE
|
if self.url.startswith('/'): return SITE
|
||||||
domain = urlparse(self.url).netloc
|
domain = urlparse(self.url).netloc
|
||||||
if domain.startswith("www."): domain = domain.split("www.")[1]
|
if domain.startswith("www."): domain = domain.split("www.")[1]
|
||||||
|
|
Loading…
Reference in New Issue