fix oembed urls

This commit is contained in:
j 2017-02-16 14:33:51 +01:00
parent b800110b29
commit a763291808
1 changed files with 1 additions and 1 deletions

View File

@ -1194,7 +1194,7 @@ def oembed(request):
url = request.GET['url']
parts = urlparse(url).path.split('/')
if not len(parts) < 2:
if len(parts) < 2:
raise Http404
public_id = parts[1]
item = get_object_or_404_json(models.Item, public_id=public_id)