みてるぞ 6 days ago
parent
commit
6926ac3ef7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      backend/lib/tasks/sync_nico.rake

+ 3
- 3
backend/lib/tasks/sync_nico.rake View File

@@ -114,6 +114,9 @@ namespace :nico do
if deerjikist
desired_non_nico_ids << deerjikist.tag_id
desired_nico_ids << deerjikist.tag_id
elsif !(Tag.where(id: desired_all_ids).where(category: :deerjikist).exists?)
desired_non_nico_ids << Tag.no_deerjikist.id
desired_nico_ids << Tag.no_deerjikist.id
end

desired_nico_ids.uniq!
@@ -124,9 +127,6 @@ namespace :nico do
if kept_non_nico_ids.to_set != desired_non_nico_ids.to_set
desired_all_ids << Tag.bot.id
end
unless Tag.where(id: desired_all_ids).where(category: 'deerjikist').exists?
desired_all_ids << Tag.no_deerjikist.id
end
desired_all_ids.uniq!

sync_post_tags!(post, desired_all_ids, current_ids: kept_ids)


Loading…
Cancel
Save