add comments for future self

master
Aevann 2024-11-15 18:52:21 +02:00
parent b5b6d256d5
commit 80152e0a2b
1 changed files with 2 additions and 2 deletions

View File

@ -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>