diff app/views/tweets/_tweet.html.erb @ 204:70e90ea4b870

Fix uri for nil user
author nanaya <me@nanaya.pro>
date Mon, 19 Oct 2020 04:08:30 +0900
parents 40c828f83657
children ad6264cca788
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Mon Oct 19 03:42:22 2020 +0900
+++ b/app/views/tweets/_tweet.html.erb	Mon Oct 19 04:08:30 2020 +0900
@@ -1,6 +1,6 @@
 <% if tweet.retweeted_status.present? %>
   <p>
-    <%= link_to tweet.retweeted_status.uri.to_s do %>
+    <%= link_to status_url(tweet.retweeted_status) do %>
       <em>Retweeted:</em>
     <% end %>
   </p>