Skip to content
Snippets Groups Projects
Commit 3919571c authored by han@highemelry's avatar han@highemelry Committed by Eugen Rochko
Browse files

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

parent 75c6ad50
Branches
Tags
No related merge requests found
......@@ -63,7 +63,7 @@ class CustomEmoji < ApplicationRecord
def copy!
copy = self.class.find_or_initialize_by(domain: nil, shortcode: shortcode)
copy.image = image
copy.save!
copy.tap(&:save!)
end
class << self
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment