From 42026481dbbff1c1af27cc8bc6c2d530d50567a8 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Sun, 27 Dec 2020 23:14:10 -0500 Subject: [PATCH] Remove automatic inclusion of Twitter widget.js (#12032) * Remove automatic inclusion of Twitter widget.js * Fix syntax error --- app/views/articles/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index eba8e24e9..ac1344c09 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -225,7 +225,8 @@ <% if has_vid?(@article) %> <%= render "articles/fitvids" %> <% end %> - <% if @article.processed_html.include? 'class="twitter-tweet"' %> + <% if @article.processed_html.include?('class="twitter-tweet"') || + @article.processed_html.include?("ltag_twitter_timeline-liquid-tag") %> <% end %> <% if @article.processed_html.include? "instagram-media" %> @@ -248,5 +249,4 @@ <%== TweetTag.script %> <%== UserSubscriptionTag.script %> - <%== TwitterTimelineTag.script %> <% end %>