fix 500 error
parent
273ff1bc2e
commit
3ba607a003
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue