Merge commit 'e23b26178a71f90d64fe2a3e9e4468f265ecc71c' into glitch-soc/merge-upstream

Merge upstream changes right before the public profile redesign.
This commit is contained in:
Thibaut Girka
2018-07-30 14:39:06 +02:00
6 changed files with 22 additions and 24 deletions

View File

@ -34,12 +34,12 @@ class MediaAttachment < ApplicationRecord
IMAGE_STYLES = {
original: {
geometry: '1280x1280>',
pixels: 1_638_400, # 1280x1280px
file_geometry_parser: FastGeometryParser,
},
small: {
geometry: '400x400>',
pixels: 160_000, # 400x400px
file_geometry_parser: FastGeometryParser,
},
}.freeze
@ -176,7 +176,7 @@ class MediaAttachment < ApplicationRecord
elsif AUDIO_MIME_TYPES.include? f.file_content_type
[:audio_transcoder]
else
[:thumbnail]
[:lazy_thumbnail]
end
end
end