mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
fix for site banner
This commit is contained in:
parent
6116e90e62
commit
4bfaa32431
4 changed files with 36 additions and 1 deletions
|
@ -62,7 +62,7 @@ post '/admin/banip' do
|
|||
flash[:error] = 'IP is blank, cannot continue'
|
||||
redirect '/admin'
|
||||
end
|
||||
sites = Site.filter(ip: Site.hash_ip(site.ip), is_banned: false).all
|
||||
sites = Site.filter(ip: site.ip, is_banned: false).all
|
||||
sites.each {|s| s.ban!}
|
||||
flash[:error] = "#{sites.length} sites have been banned."
|
||||
redirect '/admin'
|
||||
|
|
4
app/search.rb
Normal file
4
app/search.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
get '/search' do
|
||||
erb :'search'
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue