diff --git a/app/models/emoji.rb b/app/models/emoji.rb index 368b7a37fa3..ba0b4ca11fe 100644 --- a/app/models/emoji.rb +++ b/app/models/emoji.rb @@ -84,7 +84,7 @@ class Emoji def self.load_custom result = [] - CustomEmoji.includes(:upload).order(:name).find_each do |emoji| + CustomEmoji.includes(:upload).order(:name).each do |emoji| result << Emoji.new.tap do |e| e.name = emoji.name e.url = emoji.upload&.url