|
@@ -49,13 +49,13 @@ namespace :nico do |
|
|
end |
|
|
end |
|
|
if post.tags.size < 20 |
|
|
if post.tags.size < 20 |
|
|
name = 'タグ希望' |
|
|
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| |
|
|
post.tags << Tag.find_or_initialize_by(name:) { |tag| |
|
|
tag.category = 'meta' |
|
|
tag.category = 'meta' |
|
|
} |
|
|
} |
|
|
end |
|
|
end |
|
|
name = 'bot操作' |
|
|
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| |
|
|
post.tags << Tag.find_or_initialize_by(name:) { |tag| |
|
|
tag.category = 'meta' |
|
|
tag.category = 'meta' |
|
|
} |
|
|
} |
|
|