diff --git a/files/templates/post.html b/files/templates/post.html
index 3d9f44ebe..404b33b70 100644
--- a/files/templates/post.html
+++ b/files/templates/post.html
@@ -157,9 +157,9 @@
{% endif %}
{% elif p.url.startswith('https://instagram.com/') %}
{% 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' %}
- {% else %}
+ {% else %} {# implies profile #}
{% set path = path + '/embed' %}
{% endif %}