dont try to embed tiktok profiles
parent
d3dc227e58
commit
9f0fa10273
|
@ -153,7 +153,9 @@
|
||||||
<script defer src="{{'js/reddit_embed.js' | asset}}"></script>
|
<script defer src="{{'js/reddit_embed.js' | asset}}"></script>
|
||||||
{% elif p.url and p.url.startswith('https://tiktok.com/@') %}
|
{% elif p.url and p.url.startswith('https://tiktok.com/@') %}
|
||||||
{% set id = p.url.split('/video/')[1] %}
|
{% set id = p.url.split('/video/')[1] %}
|
||||||
<iframe id="embed" src="https://www.tiktok.com/embed/{{id}}" width="325px" height="753px"></iframe>
|
{% if id %}
|
||||||
|
<iframe id="embed" src="https://www.tiktok.com/embed/{{id}}" width="325px" height="753px"></iframe>
|
||||||
|
{% endif %}
|
||||||
{% elif p.domain == 'instagram.com' %}
|
{% elif p.domain == '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 %}
|
||||||
|
|
Loading…
Reference in New Issue