mirror of
https://github.com/neocities/neocities.git
synced 2025-05-30 17:23:57 +02:00
fixes to banhammer
This commit is contained in:
parent
41b214b99f
commit
c68cbeb5a4
3 changed files with 5 additions and 3 deletions
3
app.rb
3
app.rb
|
@ -234,7 +234,8 @@ post '/admin/banhammer' do
|
|||
|
||||
DB.transaction {
|
||||
FileUtils.mv site_base_path(site.username), File.join(settings.public_folder, 'banned_sites', site.username)
|
||||
site.update is_banned: true
|
||||
site.is_banned = true
|
||||
site.save(validate: false)
|
||||
}
|
||||
|
||||
flash[:success] = 'MISSION ACCOMPLISHED'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue