Add (tint)
This commit is contained in:
@@ -49,12 +49,24 @@ public static function handle(NewsSerpResult $news_serp_result, $serp_counts = 1
|
||||
continue;
|
||||
}
|
||||
|
||||
// check timestamp
|
||||
$serp_timestamp = Carbon::parse($serp_item->timestamp);
|
||||
if(!$serp_timestamp->isBetween(now()->subHours(6), now()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
/////
|
||||
|
||||
$blacklist_keywords = config('platform.global.blacklist_keywords_serp');
|
||||
|
||||
$blacklist_domains = config('platform.global.blacklist_domains_serp');
|
||||
|
||||
$skipItem = false;
|
||||
|
||||
|
||||
|
||||
|
||||
foreach ($blacklist_domains as $domain) {
|
||||
if (str_contains($serp_item->domain, $domain)) {
|
||||
$skipItem = true;
|
||||
|
||||
Reference in New Issue
Block a user