Fix audit log error when custom emoji is copied from remote server (#11876)

signup-info-prompt
han@highemelry 2019-09-18 06:20:48 +09:00 committed by Eugen Rochko
parent 75c6ad500d
commit 3919571c39
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class CustomEmoji < ApplicationRecord
def copy! def copy!
copy = self.class.find_or_initialize_by(domain: nil, shortcode: shortcode) copy = self.class.find_or_initialize_by(domain: nil, shortcode: shortcode)
copy.image = image copy.image = image
copy.save! copy.tap(&:save!)
end end
class << self class << self