Remove targeted down voting report.

Remove the targeted down voting report. This report hasn't been working
for a while. The /post_votes page is a better way to investigate
downvoting activity anyway.
This commit is contained in:
evazion
2020-01-07 11:58:45 -06:00
parent d00308c43d
commit e8efe1107f
4 changed files with 0 additions and 33 deletions

View File

@@ -1,6 +1,5 @@
class ReportsController < ApplicationController
before_action :member_only, :except => [:upload_tags]
before_action :moderator_only, :only => [:down_voting_post_report, :down_voting_post_report_create]
respond_to :html, :xml, :json, only: [:upload_tags]
def uploads
@@ -12,16 +11,4 @@ class ReportsController < ApplicationController
@upload_reports = Reports::UploadTags.includes(versions: { post: :versions }).for_user(params[:user_id]).order("id desc").paginate(params[:page], :limit => params[:limit])
respond_with(@upload_reports)
end
def down_voting_post
end
def down_voting_post_create
user_id = CurrentUser.id
post_id = params[:post_id].to_i
sqs = SqsService.new(Danbooru.config.aws_sqs_async_reports)
sqs.send_message("targetedpostdownvoting-#{user_id}-#{post_id}")
flash[:notice] = "You will be messaged when the report has finished generating"
redirect_to reports_down_voting_post_path
end
end