Skip to content
Snippets Groups Projects
Commit 0e60282e authored by Robert Speicher's avatar Robert Speicher
Browse files

Redirect back to user profile page after abuse report

Now the reporter will see the fruits of their labor, namely, the red
icon!
parent 6f4ea679
No related branches found
No related tags found
No related merge requests found
Loading
@@ -14,7 +14,7 @@ class AbuseReportsController < ApplicationController
Loading
@@ -14,7 +14,7 @@ class AbuseReportsController < ApplicationController
end end
   
message = "Thank you for your report. A GitLab administrator will look into it shortly." message = "Thank you for your report. A GitLab administrator will look into it shortly."
redirect_to root_path, notice: message redirect_to @abuse_report.user, notice: message
else else
render :new render :new
end end
Loading
@@ -23,6 +23,9 @@ class AbuseReportsController < ApplicationController
Loading
@@ -23,6 +23,9 @@ class AbuseReportsController < ApplicationController
private private
   
def report_params def report_params
params.require(:abuse_report).permit(:user_id, :message) params.require(:abuse_report).permit(%i(
message
user_id
))
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment