Update (test): add indexing route

This commit is contained in:
2023-09-27 00:06:30 +08:00
parent f8c481b867
commit 012b3dfc61

View File

@@ -16,6 +16,15 @@ class GenerateArticleFeaturedImageTask
public static function handle($post)
{
$keyword = $post->main_keyword;
if (is_array($post->keywords))
{
if (count($post->keywords) > 0)
{
$keyword .= " " . implode(" ", $post->keywords);
}
}
$title = $post->short_title;
$article_type = $post->type;
$country_iso = 'US';