diff options
Diffstat (limited to 'providers')
-rw-r--r-- | providers/Motorsport.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/providers/Motorsport.php b/providers/Motorsport.php index f055ad6..6faa9cc 100644 --- a/providers/Motorsport.php +++ b/providers/Motorsport.php @@ -84,7 +84,8 @@ class Motorsport extends \Providers\Twitter { return array_filter( $items, function ($item) { - return isset($item->content['article:published_time']); + $urlParts = parse_url($item->content['og:url']); + return isset($item->content['article:published_time']) && strpos($urlParts['path'], '/archive/') !== 0; } ); } |