This website works better with JavaScript.
首頁
探索
說明
登入
abunchtell
/
mastodon
關註
1
收藏
0
複製
0
程式碼
問題管理
0
Activity
瀏覽代碼
Fix audit log error when custom emoji is copied from remote server (
#11876
)
master^2
han@highemelry
4 年之前
committed by
Eugen Rochko
父節點
75c6ad500d
當前提交
3919571c39
共有
1 個文件被更改
,包括
1 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
取消
儲存