Merge pull request #5688 from tomhughes/spam-check-report
Make reports trigger a spam check on the reported user
This commit is contained in:
commit
094d9f9ba5
3 changed files with 41 additions and 1 deletions
|
@ -29,6 +29,8 @@ class ReportsController < ApplicationController
|
|||
@report.issue.reopen unless @report.issue.open?
|
||||
@report.issue.save!
|
||||
|
||||
@report.issue.reported_user&.spam_check
|
||||
|
||||
redirect_to helpers.reportable_url(@report.issue.reportable), :notice => t(".successful_report")
|
||||
else
|
||||
flash.now[:notice] = t(".provide_details")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue