# HG changeset patch # User nanaya # Date 1689594324 -32400 # Node ID be0b78fb5f5774ff4e33874049ca40794564e8b9 # Parent 9e5f9ffa407753c41c268e7390e34ee11fb2f33a Link to original tweet in tweet header Otherwise there's no link for quote retweets. diff -r 9e5f9ffa4077 -r be0b78fb5f57 app/views/tweets/_tweet.html.erb --- a/app/views/tweets/_tweet.html.erb Mon Jul 17 04:40:46 2023 +0900 +++ b/app/views/tweets/_tweet.html.erb Mon Jul 17 20:45:24 2023 +0900 @@ -1,15 +1,13 @@ <% if tweet[:retweet].present? %> -

- <%= link_to status_url(tweet[:retweet]) do %> - Retweeted: - <% end %> -

+

Retweeted:

<%= render "tweet", :tweet => tweet[:retweet], :with_time => true %> <% else %> <% if defined?(with_time) && with_time %>

- Originally tweeted at <%= tweet[:created_at].rfc822 %> + + Originally <%= link_to 'tweeted', status_url(tweet) %> at <%= tweet[:created_at].rfc822 %> +

<% end %>