瀏覽代碼

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

master^2
han@highemelry 4 年之前
committed by Eugen Rochko
父節點
當前提交
3919571c39
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      app/models/custom_emoji.rb

+ 1
- 1
app/models/custom_emoji.rb 查看文件

@@ -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…
取消
儲存