modqueue: move url from /moderator/post/queue to /modqueue.

This commit is contained in:
evazion
2020-02-29 14:00:09 -06:00
parent 72210c0226
commit 475d6ae7cf
15 changed files with 44 additions and 53 deletions

View File

@@ -0,0 +1,9 @@
class ModqueueController < ApplicationController
respond_to :html, :json, :xml
before_action :approver_only
def index
@posts = Post.includes(:appeals, :disapprovals, :uploader, flags: [:creator]).reorder(id: :asc).pending_or_flagged.available_for_moderation(search_params[:hidden]).tag_match(search_params[:tags]).paginated_search(params, count_pages: true)
respond_with(@posts)
end
end