This website works better with JavaScript.
首頁
探索
說明
登入
abunchtell
/
mastodon
關註
1
收藏
0
複製
0
程式碼
問題管理
0
Activity
瀏覽代碼
Fix custom emoji category creation silently erroring out on duplicate category (
#12647
)
Instead, just re-use the existing category if any.
Fixes
#12608
master^2
ThibG
4 年之前
committed by
Eugen Rochko
父節點
fb9137752a
當前提交
c0ed53b810
共有
1 個文件被更改
,包括
1 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/form/custom_emoji_batch.rb
+ 1
- 1
app/models/form/custom_emoji_batch.rb
查看文件
@@ -40,7 +40,7 @@ class Form::CustomEmojiBatch
if category_id.present?
CustomEmojiCategory.find(category_id)
elsif category_name.present?
CustomEmojiCategory.create!(name: category_name)
CustomEmojiCategory.
find_or_
create
_by
!(name: category_name)
end
end
Write
Preview
Loading…
取消
儲存