Browse Source

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

pull/4/head
han@highemelry 4 years ago
committed by Eugen Rochko
parent
commit
3919571c39
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/custom_emoji.rb

+ 1
- 1
app/models/custom_emoji.rb View File

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

Loading…
Cancel
Save