comparison 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
comparison
equal deleted inserted replaced
203:af84c9f23263 204:70e90ea4b870
1 <% if tweet.retweeted_status.present? %> 1 <% if tweet.retweeted_status.present? %>
2 <p> 2 <p>
3 <%= link_to tweet.retweeted_status.uri.to_s do %> 3 <%= link_to status_url(tweet.retweeted_status) do %>
4 <em>Retweeted:</em> 4 <em>Retweeted:</em>
5 <% end %> 5 <% end %>
6 </p> 6 </p>
7 7
8 <%= render "tweet", :tweet => tweet.retweeted_status, :with_time => true %> 8 <%= render "tweet", :tweet => tweet.retweeted_status, :with_time => true %>