fix mod queue logic
This commit is contained in:
@@ -871,7 +871,7 @@ class Post < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pending_or_flagged
|
def pending_or_flagged
|
||||||
where("(is_pending = ? or is_flagged = ?)", true, true)
|
where("(is_pending = ? or (is_flagged = ? and id in (select _.post_id from post_flags _ where _.created_at >= ?)))", true, true, 1.week.ago)
|
||||||
end
|
end
|
||||||
|
|
||||||
def undeleted
|
def undeleted
|
||||||
|
|||||||
Reference in New Issue
Block a user