Skip to content

Commit

Permalink
Fix audit log error when custom emoji is copied from remote server (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
highemerly authored and hiyuki2578 committed Oct 2, 2019
1 parent af80d6d commit 8ffe2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/custom_emoji.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def object_type
def copy!
copy = self.class.find_or_initialize_by(domain: nil, shortcode: shortcode)
copy.image = image
copy.save!
copy.tap(&:save!)
end

class << self
Expand Down

0 comments on commit 8ffe2c9

Please sign in to comment.