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

th-downstream
han@highemelry 5 years ago committed by Eugen Rochko
parent 16dbecf6e5
commit 66241cfc7e

@ -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

Loading…
Cancel
Save