From fece9ed344a229a43f20b5288959241e64f31871 Mon Sep 17 00:00:00 2001 From: Arnav Jain Date: Fri, 30 Jun 2023 15:50:54 +0200 Subject: [PATCH] [NotAlwaysBridge] Add new categories, remove duplicate header, and social meta (#3463) * [NotAlwaysBridge] add new tags * [NotAlwaysBridge] Remove duplicate header and social meta * [NotAlwaysBridge] Add space to fix lint issues --- bridges/NotAlwaysBridge.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bridges/NotAlwaysBridge.php b/bridges/NotAlwaysBridge.php index 49b6f663..6f1a8c00 100644 --- a/bridges/NotAlwaysBridge.php +++ b/bridges/NotAlwaysBridge.php @@ -19,8 +19,10 @@ class NotAlwaysBridge extends BridgeAbstract 'Romantic' => 'romantic', 'Related' => 'related', 'Learning' => 'learning', - 'Friendly' => 'friendly', 'Hopeless' => 'hopeless', + 'Healthy' => 'healthy', + 'Legal' => 'legal', + 'Friendly' => 'friendly', 'Unfiltered' => 'unfiltered' ] ] @@ -38,7 +40,9 @@ class NotAlwaysBridge extends BridgeAbstract #print_r($post); $item = []; $item['uri'] = $post->find('h1', 0)->find('a', 0)->href; - $item['content'] = $post; + $postHeader = $post->find('.post_header', 0); + $storyContent = $post->find('.storycontent', 0); + $item['content'] = $postHeader . '

' . $storyContent; $item['title'] = $post->find('h1', 0)->find('a', 0)->innertext; $this->items[] = $item; }