fixes #2650: Add random mode to mod queue

This commit is contained in:
r888888888
2016-09-08 15:52:48 -07:00
parent d1674e4cbb
commit de34c7fca3
9 changed files with 115 additions and 1 deletions

View File

@@ -27,6 +27,12 @@ class PostsController < ApplicationController
end
def show
if CurrentUser.is_janitor? && (cookies[:moderated].blank? || Time.at(cookies[:moderated].to_i) < 1.day.ago)
flash[:notice] = "You haven't moderated any posts recently. Consider checking the queue."
#redirect_to(random_moderator_post_queue_path(:return_to => request.original_url))
#return
end
@post = Post.find(params[:id])
@post_flag = PostFlag.new(:post_id => @post.id)
@post_appeal = PostAppeal.new(:post_id => @post.id)