mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
remove sandbox for banned/deleted sites
This commit is contained in:
parent
f73b6e5a75
commit
e6deaa05b9
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -112,7 +112,7 @@ task :compile_nginx_mapfiles => [:environment] do
|
||||||
end
|
end
|
||||||
|
|
||||||
File.open('./files/maps/sandboxed.txt', 'w') do |file|
|
File.open('./files/maps/sandboxed.txt', 'w') do |file|
|
||||||
usernames = DB["select username from sites where created_at > ? and parent_site_id is null and (plan_type is null or plan_type='free')", 2.days.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"}
|
usernames = DB["select username from sites where created_at > ? and parent_site_id is null and (plan_type is null or plan_type='free') and is_banned != 't' and is_deleted != 't'", 2.days.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Compile letsencrypt ssl keys
|
# Compile letsencrypt ssl keys
|
||||||
|
|
Loading…
Add table
Reference in a new issue