diff --git a/app.rb b/app.rb index 74f16a56..49f40b7d 100644 --- a/app.rb +++ b/app.rb @@ -1567,9 +1567,9 @@ end def require_unbanned_ip if Site.banned_ip?(request.ip) session[:id] = nil - flash[:error] = 'Your IP address has been banned due to misconduct. '+ + flash[:error] = 'Your IP address has been banned due to misconduct/spam. '+ 'If you believe this to be in error, contact the site admin.' - redirect '/' + return {result: 'error'}.to_json end end