forked from MarseyWorld/MarseyWorld
add comments for future self
parent
b5b6d256d5
commit
80152e0a2b
|
@ -157,9 +157,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif p.url.startswith('https://instagram.com/') %}
|
{% elif p.url.startswith('https://instagram.com/') %}
|
||||||
{% set path = p.url.split('https://instagram.com/')[1].rstrip('/') %}
|
{% set path = p.url.split('https://instagram.com/')[1].rstrip('/') %}
|
||||||
{% if '/' in path %}
|
{% if '/' in path %} {# implies post or reel #}
|
||||||
{% set path = path + '/embed/captioned' %}
|
{% set path = path + '/embed/captioned' %}
|
||||||
{% else %}
|
{% else %} {# implies profile #}
|
||||||
{% set path = path + '/embed' %}
|
{% set path = path + '/embed' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<iframe id="other-embed" credentialless="true" sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox" scrolling="no" class="autoresizable" src="https://www.instagram.com/{{path}}" style="width:calc(100% - 2px);min-width:326px;max-width:540px"></iframe>
|
<iframe id="other-embed" credentialless="true" sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox" scrolling="no" class="autoresizable" src="https://www.instagram.com/{{path}}" style="width:calc(100% - 2px);min-width:326px;max-width:540px"></iframe>
|
||||||
|
|
Loading…
Reference in New Issue