Update (ui)
This commit is contained in:
@@ -54,9 +54,8 @@ public static function handle(int $rss_post_id)
|
||||
if (count($post_meta_response->output->keywords) > 0) {
|
||||
$rss_post->keywords = $post_meta_response->output->keywords;
|
||||
|
||||
foreach ($post_meta_response->output->keywords as $word)
|
||||
{
|
||||
$words_to_add_in_body[] = $word;
|
||||
foreach ($post_meta_response->output->keywords as $word) {
|
||||
$words_to_add_in_body[] = $word;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,9 +64,8 @@ public static function handle(int $rss_post_id)
|
||||
if (count($post_meta_response->output->entities) > 0) {
|
||||
$rss_post->entities = $post_meta_response->output->entities;
|
||||
|
||||
foreach ($post_meta_response->output->entities as $word)
|
||||
{
|
||||
$words_to_add_in_body[] = $word;
|
||||
foreach ($post_meta_response->output->entities as $word) {
|
||||
$words_to_add_in_body[] = $word;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,7 +104,7 @@ public static function handle(int $rss_post_id)
|
||||
$rss_post->category_id = $category->id;
|
||||
}
|
||||
|
||||
$rss_post->keyword_list = implode(",", $words_to_add_in_body);
|
||||
$rss_post->keyword_list = implode(',', $words_to_add_in_body);
|
||||
|
||||
$rss_post->status = 'published';
|
||||
$rss_post->save();
|
||||
|
||||
Reference in New Issue
Block a user