Update (front post): Fix parsing issue
This commit is contained in:
@@ -17,12 +17,10 @@ public static function handle($post)
|
||||
{
|
||||
$keyword = $post->main_keyword;
|
||||
|
||||
if (is_array($post->keywords))
|
||||
{
|
||||
if (count($post->keywords) > 0)
|
||||
{
|
||||
$keyword .= " " . implode(" ", $post->keywords);
|
||||
}
|
||||
if (is_array($post->keywords)) {
|
||||
if (count($post->keywords) > 0) {
|
||||
$keyword .= ' '.implode(' ', $post->keywords);
|
||||
}
|
||||
}
|
||||
|
||||
$title = $post->short_title;
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
use Exception;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
|
||||
class GetNewsSerpTask
|
||||
{
|
||||
public static function handle(Category $category, $country_iso)
|
||||
@@ -76,6 +75,7 @@ public static function handle(Category $category, $country_iso)
|
||||
} catch (Exception $e) {
|
||||
Log::error(json_encode($serp_obj));
|
||||
inspector()->reportException($e);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
use App\Models\Category;
|
||||
use App\Models\NewsSerpResult;
|
||||
use App\Models\SerpUrl;
|
||||
use Carbon\Carbon;
|
||||
use Exception;
|
||||
|
||||
class ParseNewsSerpDomainsTask
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
use App\Models\Post;
|
||||
use Exception;
|
||||
|
||||
use LaravelFreelancerNL\LaravelIndexNow\Facades\IndexNow;
|
||||
use LaravelGoogleIndexing;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user