Merge pull request #5688 from tomhughes/spam-check-report

Make reports trigger a spam check on the reported user
This commit is contained in:
Andy Allan 2025-02-16 14:19:45 +00:00 committed by GitHub
commit 094d9f9ba5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 41 additions and 1 deletions

View file

@ -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")