diff app/views/tweets/_tweet.html.erb @ 98:c5c095f6981e

Expand the urls
author nanaya <me@myconan.net>
date Sat, 17 Sep 2016 13:41:05 +0900
parents 04ccd0632a71
children c1d5d8be92c6
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Thu Jul 28 07:08:52 2016 +0900
+++ b/app/views/tweets/_tweet.html.erb	Sat Sep 17 13:41:05 2016 +0900
@@ -6,7 +6,7 @@
   <%= render "tweet", :tweet => tweet.retweeted_status %>
 <% else%>
   <p>
-    <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %>
+    <%= auto_link(expand_url(tweet.text)).gsub("\n", "<br>").html_safe %>
   </p>
 
   <p>