forked from 0x2620/pandora
fix oembed urls
This commit is contained in:
parent
b800110b29
commit
a763291808
1 changed files with 1 additions and 1 deletions
|
@ -1194,7 +1194,7 @@ def oembed(request):
|
||||||
|
|
||||||
url = request.GET['url']
|
url = request.GET['url']
|
||||||
parts = urlparse(url).path.split('/')
|
parts = urlparse(url).path.split('/')
|
||||||
if not len(parts) < 2:
|
if len(parts) < 2:
|
||||||
raise Http404
|
raise Http404
|
||||||
public_id = parts[1]
|
public_id = parts[1]
|
||||||
item = get_object_or_404_json(models.Item, public_id=public_id)
|
item = get_object_or_404_json(models.Item, public_id=public_id)
|
||||||
|
|
Loading…
Reference in a new issue