Skip to content

Commit

Permalink
Fix ImageMagick use for custom emojis
Browse files Browse the repository at this point in the history
Fixes #30578
  • Loading branch information
ClearlyClaire committed Jun 7, 2024
1 parent 50169ad commit d1057aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/custom_emoji.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CustomEmoji < ApplicationRecord

has_one :local_counterpart, -> { where(domain: nil) }, class_name: 'CustomEmoji', primary_key: :shortcode, foreign_key: :shortcode, inverse_of: false, dependent: nil

has_attached_file :image, styles: { static: { format: 'png', convert_options: '-coalesce +profile "!icc,*" +set date:modify +set date:create +set date:timestamp' } }, validate_media_type: false
has_attached_file :image, styles: { static: { format: 'png', convert_options: '-coalesce +profile "!icc,*" +set date:modify +set date:create +set date:timestamp', file_geometry_parser: FastGeometryParser } }, validate_media_type: false

normalizes :domain, with: ->(domain) { domain.downcase }

Expand Down

0 comments on commit d1057aa

Please sign in to comment.