Update (test): add indexing route
This commit is contained in:
@@ -16,6 +16,15 @@ class GenerateArticleFeaturedImageTask
|
|||||||
public static function handle($post)
|
public static function handle($post)
|
||||||
{
|
{
|
||||||
$keyword = $post->main_keyword;
|
$keyword = $post->main_keyword;
|
||||||
|
|
||||||
|
if (is_array($post->keywords))
|
||||||
|
{
|
||||||
|
if (count($post->keywords) > 0)
|
||||||
|
{
|
||||||
|
$keyword .= " " . implode(" ", $post->keywords);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$title = $post->short_title;
|
$title = $post->short_title;
|
||||||
$article_type = $post->type;
|
$article_type = $post->type;
|
||||||
$country_iso = 'US';
|
$country_iso = 'US';
|
||||||
|
|||||||
Reference in New Issue
Block a user