このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
abunchtell
/
mastodon
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
アクティビティ
ソースを参照
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行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+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
書き込み
プレビュー
読み込み中…
キャンセル
保存