tidy workaround
This commit is contained in:
parent
1e0891623a
commit
5cdc4202e9
|
@ -169,6 +169,9 @@ class Item(TimeStampedModel):
|
|||
@classmethod
|
||||
def from_external(cls, url):
|
||||
home = url_for('.home', _external=True)
|
||||
if not url.startswith(home):
|
||||
username, _, hashid = url[len(home):].partition('/')
|
||||
else:
|
||||
m = re_server_url.match(url)
|
||||
if not m:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue