# HG changeset patch # User nanaya # Date 1532710860 -32400 # Node ID 3943833e973caf5f1a23e329c588f0e47bc9a736 # Parent cd76c83d6d24dab98ef243ec33718db3157034db Now with video support wooow diff -r cd76c83d6d24 -r 3943833e973c app/views/tweets/_tweet.html.erb --- a/app/views/tweets/_tweet.html.erb Sat Apr 14 04:06:04 2018 +0900 +++ b/app/views/tweets/_tweet.html.erb Sat Jul 28 02:01:00 2018 +0900 @@ -36,6 +36,8 @@ <%= link_to "#{media.media_url_https}:orig" do %> <%= image_tag "#{media.media_url_https}:small", :alt => "attachment #{i + 1}" -%> <% end %> + <% elsif media.is_a? Twitter::Media::Video %> + <%= video_tag media.video_info.variants.map(&:url), width: '100%' %> <% end %> <% end %>