mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
exclude deleted sites from sitemap
This commit is contained in:
parent
777207f5a3
commit
6378e6ce5a
1 changed files with 1 additions and 0 deletions
1
Rakefile
1
Rakefile
|
@ -144,6 +144,7 @@ task :generate_sitemap => [:environment] do
|
||||||
select(:id, :username, :updated_at, :profile_enabled).
|
select(:id, :username, :updated_at, :profile_enabled).
|
||||||
where(site_changed: true).
|
where(site_changed: true).
|
||||||
exclude(updated_at: nil).
|
exclude(updated_at: nil).
|
||||||
|
exclude(is_deleted: true).
|
||||||
order(:follow_count, :updated_at).
|
order(:follow_count, :updated_at).
|
||||||
all
|
all
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue