diff --git a/app/models/custom_emoji.rb b/app/models/custom_emoji.rb index 58828b0c4c..f4b872d7c5 100644 --- a/app/models/custom_emoji.rb +++ b/app/models/custom_emoji.rb @@ -33,7 +33,7 @@ class CustomEmoji < ApplicationRecord SCAN_RE = /:(#{SHORTCODE_RE_FRAGMENT}):/x SHORTCODE_ONLY_RE = /\A#{SHORTCODE_RE_FRAGMENT}\z/ - IMAGE_MIME_TYPES = %w(image/png image/gif image/webp).freeze + IMAGE_MIME_TYPES = %w(image/png image/gif image/webp image/jpeg).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