diff 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
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Thu Aug 06 23:08:59 2020 +0900
+++ b/app/views/tweets/_tweet.html.erb	Sat Aug 22 04:38:11 2020 +0900
@@ -35,8 +35,8 @@
   <p>
     <% tweet.media.each_with_index do |media, i| %>
       <% if media.is_a? Twitter::Media::Photo %>
-        <%= link_to "#{media.media_url_https}:orig" do %>
-          <%= image_tag "#{media.media_url_https}:small", :alt => "attachment #{i + 1}" -%>
+        <%= link_to "#{media.media_url_https}?name=orig" do %>
+          <%= image_tag "#{media.media_url_https}?name=small", :alt => "attachment #{i + 1}" -%>
         <% end %>
       <% elsif media.is_a? Twitter::Media::Video %>
         <%= video_tag media.video_info.variants