comparison app/views/tweets/_tweet.html.erb @ 201:40c828f83657

Using query string seems to be a bit more stable now?
author nanaya <me@nanaya.pro>
date Sat, 22 Aug 2020 04:38:11 +0900
parents 7b1bdf697063
children 70e90ea4b870
comparison
equal deleted inserted replaced
200:168318b7d11e 201:40c828f83657
33 </p> 33 </p>
34 34
35 <p> 35 <p>
36 <% tweet.media.each_with_index do |media, i| %> 36 <% tweet.media.each_with_index do |media, i| %>
37 <% if media.is_a? Twitter::Media::Photo %> 37 <% if media.is_a? Twitter::Media::Photo %>
38 <%= link_to "#{media.media_url_https}:orig" do %> 38 <%= link_to "#{media.media_url_https}?name=orig" do %>
39 <%= image_tag "#{media.media_url_https}:small", :alt => "attachment #{i + 1}" -%> 39 <%= image_tag "#{media.media_url_https}?name=small", :alt => "attachment #{i + 1}" -%>
40 <% end %> 40 <% end %>
41 <% elsif media.is_a? Twitter::Media::Video %> 41 <% elsif media.is_a? Twitter::Media::Video %>
42 <%= video_tag media.video_info.variants 42 <%= video_tag media.video_info.variants
43 .select { |i| i.bitrate.is_a? Integer } 43 .select { |i| i.bitrate.is_a? Integer }
44 .sort_by { |i| -i.bitrate } 44 .sort_by { |i| -i.bitrate }