diff app/views/tweets/_tweet.html.erb @ 190:7b1bdf697063

Add direct link for retweet
author nanaya <me@nanaya.pro>
date Sat, 27 Jul 2019 13:57:48 +0900
parents 38598ae5a8f6
children 40c828f83657
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Sun Jul 14 15:57:08 2019 +0900
+++ b/app/views/tweets/_tweet.html.erb	Sat Jul 27 13:57:48 2019 +0900
@@ -1,6 +1,8 @@
 <% if tweet.retweeted_status.present? %>
   <p>
-    <em>Retweeted:</em>
+    <%= link_to tweet.retweeted_status.uri.to_s do %>
+      <em>Retweeted:</em>
+    <% end %>
   </p>
 
   <%= render "tweet", :tweet => tweet.retweeted_status, :with_time => true %>