posts: remove dead has_ugoira_webm? code.

This commit is contained in:
evazion
2021-02-18 04:05:18 -06:00
parent e165ad3213
commit af84314c38
3 changed files with 3 additions and 10 deletions

View File

@@ -220,10 +220,6 @@ class Post < ApplicationRecord
def has_dimensions?
image_width.present? && image_height.present?
end
def has_ugoira_webm?
true
end
end
module ImageMethods

View File

@@ -1,4 +1,4 @@
<% if CurrentUser.user.default_image_size == "large" && params[:original].blank? && post.has_ugoira_webm? %>
<% if CurrentUser.user.default_image_size == "large" && params[:original].blank? %>
<%= render "posts/partials/show/ugoira_webm", :post => post %>
<% else %>
<%= render "posts/partials/show/ugoira_original", :post => post %>

View File

@@ -15,9 +15,6 @@
<%= button_tag "Pause", :id => "ugoira-pause" %>
<div id="seek-slider" class="ml-4" style="width: <%= [@post.image_width, 350].max - 81 %>px;"></div>
</div>
<% if post.has_ugoira_webm? %>
<%= link_to "Save as video (right click and save)", post.tagged_large_file_url %>
<% else %>
WebM conversion pending
<% end %>
<%= link_to "Save as video (right click and save)", post.tagged_large_file_url %>
</div>