Add: カスタム絵文字の専用編集画面/Fix: リモートの絵文字をローカルにコピー時、ライセンス情報が消失する問題 (#133)

* Add: カスタム絵文字の専用編集画面

* 新規作成画面に項目追加、編集画面に画像表示、旧テキストボックス削除

* Fix: カスタム絵文字のコピー処理で、コピーされていないプロパティがあった
This commit is contained in:
KMY(雪あすか) 2023-10-17 16:07:27 +09:00 committed by GitHub
parent 72d18cb16d
commit 4735d23c21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 115 additions and 14 deletions

View file

@ -6,7 +6,7 @@ class Form::CustomEmojiBatch
include AccountableConcern
attr_accessor :custom_emoji_ids, :action, :current_account,
:category_id, :category_name, :aliases_raw, :visible_in_picker
:category_id, :category_name, :visible_in_picker
def save
case action
@ -43,8 +43,7 @@ class Form::CustomEmojiBatch
end
custom_emojis.each do |custom_emoji|
new_aliases_raw = (aliases_raw.presence || custom_emoji.aliases_raw)
custom_emoji.update(category_id: category&.id, aliases_raw: new_aliases_raw)
custom_emoji.update(category_id: category&.id)
log_action :update, custom_emoji
end
end