diff options
author | Alexander Ivanov <saiv46.dev@gmail.com> | 2022-05-28 02:06:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 20:06:40 +0200 |
commit | 379a7a7ca7cf913cbc130a6323f821b534fc14c4 (patch) | |
tree | 9c7ba4d86521031d3e8bc32509240d77c04ab47f /app/models/custom_emoji.rb | |
parent | d21251f8fe318ca468d14134dd767382447249de (diff) |
Add support for webp uploads (#18506)
Diffstat (limited to 'app/models/custom_emoji.rb')
-rw-r--r-- | app/models/custom_emoji.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_emoji.rb b/app/models/custom_emoji.rb index a85feb73a..b08893e77 100644 --- a/app/models/custom_emoji.rb +++ b/app/models/custom_emoji.rb @@ -31,7 +31,7 @@ class CustomEmoji < ApplicationRecord :(#{SHORTCODE_RE_FRAGMENT}): (?=[^[:alnum:]:]|$)/x - IMAGE_MIME_TYPES = %w(image/png image/gif).freeze + IMAGE_MIME_TYPES = %w(image/png image/gif image/webp).freeze belongs_to :category, class_name: 'CustomEmojiCategory', optional: true has_one :local_counterpart, -> { where(domain: nil) }, class_name: 'CustomEmoji', primary_key: :shortcode, foreign_key: :shortcode |