fix embed issue

pull/232/head
Aevann 2024-08-03 17:17:21 +03:00
parent 221efce845
commit d42b9621ab
1 changed files with 1 additions and 1 deletions

View File

@ -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/@') %}