mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix banned message
This commit is contained in:
parent
20bdd2ac55
commit
83e47d0be8
1 changed files with 2 additions and 2 deletions
4
app.rb
4
app.rb
|
@ -1563,9 +1563,9 @@ end
|
||||||
def require_unbanned_ip
|
def require_unbanned_ip
|
||||||
if Site.banned_ip?(request.ip)
|
if Site.banned_ip?(request.ip)
|
||||||
session[:id] = nil
|
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, <a href="/contact">contact the site admin</a>.'
|
'If you believe this to be in error, <a href="/contact">contact the site admin</a>.'
|
||||||
redirect '/'
|
return {result: 'error'}.to_json
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue