Add note about variants not working when not generated ad-hoc
This commit is contained in:
parent
51a3652fc8
commit
1884f082ee
@ -14,6 +14,9 @@ class AvatarsController < ApplicationController
|
|||||||
blob = if size == :original
|
blob = if size == :original
|
||||||
user.avatar.blob
|
user.avatar.blob
|
||||||
else
|
else
|
||||||
|
# TODO Variants use the same custom storage key/path, which
|
||||||
|
# makes blob downloads always fetch the original version instead
|
||||||
|
# of the variant. Needs to be fixed/added in Rails.
|
||||||
user.avatar_variant(size: size)&.blob
|
user.avatar_variant(size: size)&.blob
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user