forked from 0x2620/pandora
only add #embed if #embed is not in requested url
This commit is contained in:
parent
e8cb91e45e
commit
8417f9e886
1 changed files with 2 additions and 2 deletions
|
@ -1105,8 +1105,8 @@ def oembed(request):
|
|||
item = get_object_or_404_json(models.Item, itemId=itemId)
|
||||
embed_url = request.build_absolute_uri('/%s' % itemId)
|
||||
if url.startswith(embed_url):
|
||||
embed_url = '%s#embed' % url
|
||||
else:
|
||||
embed_url = url
|
||||
if not '#embed' in embed_url:
|
||||
embed_url = '%s#embed' % embed_url
|
||||
|
||||
oembed = {}
|
||||
|
|
Loading…
Reference in a new issue