Mercurial > rsstweet
diff app/views/tweets/_tweet.html.erb @ 237:961d362e42c7 legit-client
The url in entity media isn't unique as they all point to the same thing
author | nanaya <me@nanaya.net> |
---|---|
date | Sat, 15 Jul 2023 01:47:34 +0900 |
parents | 7a773720d81f |
children | be0b78fb5f57 |
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb Sat Jul 15 01:40:31 2023 +0900 +++ b/app/views/tweets/_tweet.html.erb Sat Jul 15 01:47:34 2023 +0900 @@ -43,8 +43,8 @@ <p> <% tweet[:entity_media].each do |_short_url, media| %> <% if media[:type] == 'photo' %> - <%= link_to "#{media[:url]}?name=orig" do %> - <%= image_tag "#{media[:url]}?name=small", :alt => "attachment #{media[:id]}" -%> + <%= link_to "#{media[:image_url]}?name=orig" do %> + <%= image_tag "#{media[:image_url]}?name=small", :alt => "attachment #{media[:id]}" -%> <% end %> <% elsif media[:type] == 'video' %> <%= video_tag media[:variants]