diff --git a/app/models/emoji.rb b/app/models/emoji.rb index c3e5562acc8..b67d7e01bde 100644 --- a/app/models/emoji.rb +++ b/app/models/emoji.rb @@ -85,11 +85,9 @@ class Emoji end def self.load_custom - DistributedMutex.new(EMOJIS_CUSTOM_LOCK).synchronize do - Dir.glob(File.join(Emoji.base_directory, "*.{png,gif}")) - .sort - .map { |emoji| Emoji.create_from_path(emoji) } - end + Dir.glob(File.join(Emoji.base_directory, "*.{png,gif}")) + .sort + .map { |emoji| Emoji.create_from_path(emoji) } end def self.base_directory