diff app/views/tweets/_tweet.html.erb @ 174:d35dbc09bd83

Less double escaping for actual content Ends up rather confusing.
author nanaya <me@nanaya.pro>
date Thu, 09 Aug 2018 19:31:22 +0900
parents df4be896ab8b
children 38598ae5a8f6
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Wed Aug 08 20:38:29 2018 +0900
+++ b/app/views/tweets/_tweet.html.erb	Thu Aug 09 19:31:22 2018 +0900
@@ -13,11 +13,11 @@
 
   <p>
     <%# FIXME: Twitter gem doesn't support extended mode when writing this %>
-    <%= auto_link(html_escape(expand_url(
-          tweet.unescaped_text,
+    <%= auto_link(expand_url(
+          tweet.full_text_extended,
           tweet.attrs[:entities][:urls],
           tweet.attrs[:entities][:media]
-        )))
+        ))
         .gsub("\n", "<br />")
         .html_safe
       %>