changeset 190:7b1bdf697063

Add direct link for retweet
author nanaya <me@nanaya.pro>
date Sat, 27 Jul 2019 13:57:48 +0900
parents df86d579634e
children 64e47a4d4df4
files app/views/tweets/_tweet.html.erb
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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 %>