remove false constraint
This commit is contained in:
@@ -22,7 +22,7 @@ module Moderator
|
|||||||
cookies.permanent[:moderated] = Time.now.to_i
|
cookies.permanent[:moderated] = Time.now.to_i
|
||||||
|
|
||||||
::Post.without_timeout do
|
::Post.without_timeout do
|
||||||
@posts = ::Post.order("posts.id asc").where("false").pending_or_flagged.available_for_moderation(false).reorder("random()").limit(5)
|
@posts = ::Post.order("posts.id asc").pending_or_flagged.available_for_moderation(false).reorder("random()").limit(5)
|
||||||
@posts.each # hack to force rails to eager load
|
@posts.each # hack to force rails to eager load
|
||||||
|
|
||||||
if @posts.empty?
|
if @posts.empty?
|
||||||
|
|||||||
Reference in New Issue
Block a user