From 49affa9ded2b7c659e385cc68aa8e41c703f5bc7 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Sun, 5 Dec 2021 10:55:26 -0600 Subject: [PATCH] fix --- files/templates/submission.html | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index 9bbec7b38..65776d113 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -394,13 +394,29 @@ {% if p.embed_url %} - {% if p.domain == "twitter.com" and (v and v.theme.split("_")[0] in ["light", "coffee", "4chan"]) %} - {% include "embeds/twitterlight.html" %} - {% elif "twitter.com" in p.domain %} - {% include "embeds/twitter.html" %} - {% elif "youtu" in p.domain %} - {% include "embeds/youtube.html" %} + {% if p.domain == "twitter.com" %} + {{p.embed_url | safe}} + {% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} + + {% else %} + + {% endif %} + + {% elif "youtu" in p.domain %} + {% if 'lite' in p.embed_url %} + {{p.embed_url | safe}} + {% else %} +
+ +
+ {% endif %} + {% endif %} {% endif %} + + + {% if p.author.sig_html and (p.author_id == 1904 or not (v and v.sigs_disabled)) %} +
+ {{p.author.sig_html | safe}} {% endif %}