Add jpeg mime type as custom emoji
This commit is contained in:
parent
a0d3f061da
commit
83f037ff76
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue