From 3e61ecaae57140a5682e45563afcc957d29d0cff Mon Sep 17 00:00:00 2001 From: songtianlun Date: Tue, 8 Apr 2025 15:51:24 +0800 Subject: [PATCH] refactor: update URL generation for weather arts - Change URL path from '/weather_arts/' to '/weather/' to better reflect the content type. - Enhance code readability by making URL structure more intuitive. This change improves the clarity of the URLs generated for weather art and aligns better with the overall naming conventions. --- app/workers/submit_to_indexnow_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/submit_to_indexnow_worker.rb b/app/workers/submit_to_indexnow_worker.rb index 3b4abbc..fcdd8a9 100644 --- a/app/workers/submit_to_indexnow_worker.rb +++ b/app/workers/submit_to_indexnow_worker.rb @@ -86,7 +86,7 @@ class SubmitToIndexnowWorker WeatherArt.includes(:city).where("updated_at > ?", recently_updated).find_each do |art| # WeatherArt.includes(:city).find_each do |art| if art.image.attached? - urls << "#{@host}/cities/#{art.city.slug}/weather_arts/#{art.slug}" + urls << "#{@host}/cities/#{art.city.slug}/weather/#{art.slug}" available_locales.each do |locale| urls << "#{@host}/#{locale}/cities/#{art.city.slug}/weather/#{art.slug}" end