Merge remote-tracking branch 'origin/main' into feature/084

This commit is contained in:
2025-12-10 22:48:59 +09:00
13 changed files with 219 additions and 49 deletions
-12
View File
@@ -1,12 +0,0 @@
namespace :nico do
desc 'ニコタグ連携'
task link: :environment do
Post.find_each do |post|
tags = post.tags.where(category: 'nico')
tags.each do |tag|
post.tags.concat(tag.linked_tags) if tag.linked_tags.present?
end
post.tags = post.tags.to_a.uniq
end
end
end