Fix not being able to upload GIF emojis in admin UI (#17759)

This commit is contained in:
Eugen Rochko 2022-03-14 05:45:22 +01:00 committed by GitHub
parent 5db1f377ea
commit 91616004fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 2 additions and 60 deletions

View file

@ -7,7 +7,7 @@
.fields-group
= f.input :shortcode, wrapper: :with_label, label: t('admin.custom_emojis.shortcode'), hint: t('admin.custom_emojis.shortcode_hint')
.fields-group
= f.input :image, wrapper: :with_label, input_html: { accept: 'image/png' }, hint: t('admin.custom_emojis.image_hint')
= f.input :image, wrapper: :with_label, input_html: { accept: CustomEmoji::IMAGE_MIME_TYPES.join(' ') }, hint: t('admin.custom_emojis.image_hint', size: number_to_human_size(CustomEmoji::LIMIT))
.actions
= f.button :button, t('admin.custom_emojis.upload'), type: :submit