forked from 0x2620/pandora
return 404
This commit is contained in:
parent
1bff4aa0e9
commit
652df88342
1 changed files with 2 additions and 0 deletions
|
@ -1140,6 +1140,8 @@ def oembed(request):
|
|||
|
||||
url = request.GET['url']
|
||||
parts = urlparse(url).path.split('/')
|
||||
if not len(parts) < 2:
|
||||
raise Http404
|
||||
public_id = parts[1]
|
||||
item = get_object_or_404_json(models.Item, public_id=public_id)
|
||||
embed_url = request.build_absolute_uri('/%s' % public_id)
|
||||
|
|
Loading…
Reference in a new issue