This commit is contained in:
2025-07-08 02:58:21 +09:00
parent 56967a105e
commit 57f3cf83ae
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -49,13 +49,13 @@ namespace :nico do
end
if post.tags.size < 20
name = 'タグ希望'
post.tags.destroy(post.tags.find_by(name:))
post.tags.destroy(post.tags.find_by(name:) || [])
post.tags << Tag.find_or_initialize_by(name:) { |tag|
tag.category = 'meta'
}
end
name = 'bot操作'
post.tags.destroy(post.tags.find_by(name:))
post.tags.destroy(post.tags.find_by(name:) || [])
post.tags << Tag.find_or_initialize_by(name:) { |tag|
tag.category = 'meta'
}