We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8537e94 commit a0f7e46Copy full SHA for a0f7e46
app/controllers/protips_controller.rb
@@ -229,7 +229,7 @@ def unsubscribe
229
230
def report_inappropriate
231
protip_public_id = params[:id]
232
- protip = Protip.find_by_public_id!(public_id)
+ protip = Protip.find_by_public_id!(protip_public_id)
233
if protip.report_spam && cookies["report_inappropriate-#{protip_public_id}"].nil?
234
opts = { user_id: current_user, ip: request.remote_ip}
235
::AbuseMailer.report_inappropriate(protip_public_id,opts).deliver
0 commit comments