From a37f76529735b85696f0c8ac10932a468b9bc86a Mon Sep 17 00:00:00 2001 From: Charles T Date: Tue, 28 Nov 2023 15:51:04 +0800 Subject: [PATCH] Add autoindexing --- app/Jobs/Tasks/PublishIndexPostTask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Tasks/PublishIndexPostTask.php b/app/Jobs/Tasks/PublishIndexPostTask.php index 0de7c58..dbfd480 100644 --- a/app/Jobs/Tasks/PublishIndexPostTask.php +++ b/app/Jobs/Tasks/PublishIndexPostTask.php @@ -30,12 +30,12 @@ public static function handle(int $ai_tool_id) $ai_tool_url = route('front.aitool.show', ['ai_tool_slug' => $ai_tool->slug]); try { - IndexNow::submit($post_url); + IndexNow::submit($ai_tool_url); } catch (Exception) { } try { - LaravelGoogleIndexing::create()->update($post_url); + LaravelGoogleIndexing::create()->update($ai_tool_url); } catch (Exception) { }