fix resolution pick error

This commit is contained in:
byte[] 2020-07-12 16:36:51 -04:00
parent 0ecfa6c6c0
commit 03897624fe
2 changed files with 1 additions and 3 deletions

View file

@ -11,7 +11,7 @@
' .
= if size == :full do
#image_target.hidden.image-show data-scaled=scaled_value(@conn.assigns.current_user) data-uris=Jason.encode!(thumb_urls(@image, can?(@conn, :hide, @image))) data-width=@image.image_width data-height=@image.image_height
#image_target.hidden.image-show data-scaled=scaled_value(@conn.assigns.current_user) data-uris=Jason.encode!(thumb_urls(@image, can?(@conn, :hide, @image))) data-width=@image.image_width data-height=@image.image_height data-image-size=@image.image_size data-mime-type=@image.image_mime_type
= if @image.image_mime_type == "video/webm" do
video controls=true
- else

View file

@ -128,8 +128,6 @@ defmodule PhilomenaWeb.ImageView do
image_id: image.id,
image_tags: Jason.encode!(Enum.map(image.tags, & &1.id)),
image_tag_aliases: image.tag_list_plus_alias_cache,
image_size: image.image_size,
mime_type: image.image_mime_type,
score: image.score,
faves: image.faves_count,
upvotes: image.upvotes_count,