mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-12 12:08:02 +01:00
fix resolution pick error
This commit is contained in:
parent
0ecfa6c6c0
commit
03897624fe
2 changed files with 1 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
||||||
' .
|
' .
|
||||||
|
|
||||||
= if size == :full do
|
= 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
|
= if @image.image_mime_type == "video/webm" do
|
||||||
video controls=true
|
video controls=true
|
||||||
- else
|
- else
|
||||||
|
|
|
@ -128,8 +128,6 @@ defmodule PhilomenaWeb.ImageView do
|
||||||
image_id: image.id,
|
image_id: image.id,
|
||||||
image_tags: Jason.encode!(Enum.map(image.tags, & &1.id)),
|
image_tags: Jason.encode!(Enum.map(image.tags, & &1.id)),
|
||||||
image_tag_aliases: image.tag_list_plus_alias_cache,
|
image_tag_aliases: image.tag_list_plus_alias_cache,
|
||||||
image_size: image.image_size,
|
|
||||||
mime_type: image.image_mime_type,
|
|
||||||
score: image.score,
|
score: image.score,
|
||||||
faves: image.faves_count,
|
faves: image.faves_count,
|
||||||
upvotes: image.upvotes_count,
|
upvotes: image.upvotes_count,
|
||||||
|
|
Loading…
Reference in a new issue