diff --git a/files/templates/comments/CommentForm.html b/files/templates/comments/CommentForm.html index bfbf580482..2728c9826e 100644 --- a/files/templates/comments/CommentForm.html +++ b/files/templates/comments/CommentForm.html @@ -1,4 +1,3 @@ -{% if v %}
-{% endif %} \ No newline at end of file + \ No newline at end of file diff --git a/files/templates/submission.html b/files/templates/submission.html index f154f8bc4c..1811cd738e 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -455,7 +455,25 @@ - + {% if p.embed_url %} + {% 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)) %}