fix embed issue
parent
221efce845
commit
d42b9621ab
|
@ -147,7 +147,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if p.url %}
|
||||
{% if p.url.startswith('https://old.reddit.com/r/') %}
|
||||
{% if p.url.startswith('https://old.reddit.com/r/') and not p.url.endswith('/new') %}
|
||||
<iframe id="external-embed" src="{{p.url.replace('https://old.reddit.com/', 'https://embed.reddit.com/').split('?')[0]}}?context=1&showtitle=true{% if v.theme in DARK_THEMES %}&theme=dark{% endif %}" height="317" width="100%" allow="clipboard-read; clipboard-write" scrolling="no"></iframe>
|
||||
<script defer src="{{'js/reddit_embed.js' | asset}}"></script>
|
||||
{% elif p.url.startswith('https://tiktok.com/@') %}
|
||||
|
|
Loading…
Reference in New Issue