This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user