exclude deleted sites from sitemap

This commit is contained in:
Kyle Drake 2024-02-16 09:43:01 -06:00
parent 777207f5a3
commit 6378e6ce5a

View file

@ -144,6 +144,7 @@ task :generate_sitemap => [:environment] do
select(:id, :username, :updated_at, :profile_enabled).
where(site_changed: true).
exclude(updated_at: nil).
exclude(is_deleted: true).
order(:follow_count, :updated_at).
all