api: allow search[*_id] params to accept lists of ids in more places.
This commit is contained in:
@@ -52,7 +52,7 @@ class PostAppeal < ActiveRecord::Base
|
||||
end
|
||||
|
||||
if params[:creator_id].present?
|
||||
q = q.for_user(params[:creator_id].to_i)
|
||||
q = q.where(creator_id: params[:creator_id].split(",").map(&:to_i))
|
||||
end
|
||||
|
||||
if params[:creator_name].present?
|
||||
@@ -60,7 +60,7 @@ class PostAppeal < ActiveRecord::Base
|
||||
end
|
||||
|
||||
if params[:post_id].present?
|
||||
q = q.where("post_id = ?", params[:post_id].to_i)
|
||||
q = q.where(post_id: params[:post_id].split(",").map(&:to_i))
|
||||
end
|
||||
|
||||
if params[:post_tags_match].present?
|
||||
|
||||
Reference in New Issue
Block a user