このコミットが含まれているのは:
@@ -115,7 +115,7 @@ namespace :nico do
|
||||
# 既存のタグ Id. 集合
|
||||
kept_tag_ids = tags.pluck(:id).to_set
|
||||
# うち内部タグ Id. 集合
|
||||
kept_non_nico_tag_ids = tags.not_nico.pluck(:id).to_set
|
||||
kept_non_nico_tag_ids = tags.pluck(:id).to_set
|
||||
|
||||
# 記載すべき外部タグ Id. および連携される内部タグ Id. のリスト
|
||||
desired_nico_tag_based_ids = []
|
||||
@@ -123,11 +123,11 @@ namespace :nico do
|
||||
desired_non_nico_tag_ids = []
|
||||
|
||||
datum['tags'].each do |raw|
|
||||
name = TagNameSanitisationRule.sanitise("nico:#{ raw }")
|
||||
tag = Tag.find_or_create_by_tag_name!(name, category: :nico)
|
||||
tag = ExternalTag.find_or_create_by!(platform: :nico, name: raw)
|
||||
|
||||
event_type = tag.nico_tag_versions.exists? ? :update : :create
|
||||
NicoTagVersionRecorder.record!(tag:, event_type:, created_by_user: nil)
|
||||
unless tag.nico_tag_versions.exists?
|
||||
NicoTagVersionRecorder.record!(tag:, event_type: :create, created_by_user: nil)
|
||||
end
|
||||
|
||||
desired_nico_tag_based_ids << tag.id
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする