[Takedowns] Fix adding by tag search

Broken with b4e16fa0fd
This commit is contained in:
Earlopain 2023-09-21 19:06:18 +02:00
parent ac0f2e9a40
commit 81ab93b7ee
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -96,7 +96,7 @@ class Takedown < ApplicationRecord
end
def add_posts_by_tags!(tag_string)
new_ids = Post.tag_match_system("#{tag_string} -status:deleted").limit(1000).pluck(&:id)
new_ids = Post.tag_match_system("#{tag_string} -status:deleted").limit(1000).pluck(:id)
add_posts_by_ids!(new_ids.join(" "))
end