fix 500 error

master
Aevann 2024-04-08 14:53:54 +02:00
parent 273ff1bc2e
commit 3ba607a003
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@
{% endif %}
{% endif %}
{% if p.url.startswith('https://old.reddit.com/r/') %}
{% if p.url and p.url.startswith('https://old.reddit.com/r/') %}
<iframe id="reddit-embed" class="border-0" 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="317px" width="640px"></iframe>
<script defer src="{{'js/reddit_embed.js' | asset}}"></script>
{% endif %}