remotes/1693045480750635534/spooky-22
kek7198 2021-12-05 10:55:26 -06:00
parent 5f8abf7796
commit 49affa9ded
1 changed files with 22 additions and 6 deletions

View File

@ -394,13 +394,29 @@
</div> </div>
{% if p.embed_url %} {% if p.embed_url %}
{% if p.domain == "twitter.com" and (v and v.theme.split("_")[0] in ["light", "coffee", "4chan"]) %} {% if p.domain == "twitter.com" %}
{% include "embeds/twitterlight.html" %} {{p.embed_url | safe}}
{% elif "twitter.com" in p.domain %} {% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %}
{% include "embeds/twitter.html" %} <script src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% elif "youtu" in p.domain %} {% else %}
{% include "embeds/youtube.html" %} <script src="/assets/js/twitter.js" charset="utf-8"></script>
{% endif %}
<script>document.getElementById('twitter-widget-0').setAttribute('sandbox','')</script>
{% elif "youtu" in p.domain %}
{% if 'lite' in p.embed_url %}
{{p.embed_url | safe}}
{% else %}
<div class="embed-responsive embed-responsive-16by9 mb-3">
<iframe loading="lazy" src="{{p.embed_url}}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
{% endif %}
{% endif %}
{% endif %} {% endif %}
{% if p.author.sig_html and (p.author_id == 1904 or not (v and v.sigs_disabled)) %}
<hr>
{{p.author.sig_html | safe}}
{% endif %} {% endif %}
</div> </div>