[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
This commit is contained in:
Arnav Jain 2023-06-30 15:50:54 +02:00 committed by GitHub
parent b6a263037a
commit fece9ed344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,8 +19,10 @@ class NotAlwaysBridge extends BridgeAbstract
'Romantic' => 'romantic', 'Romantic' => 'romantic',
'Related' => 'related', 'Related' => 'related',
'Learning' => 'learning', 'Learning' => 'learning',
'Friendly' => 'friendly',
'Hopeless' => 'hopeless', 'Hopeless' => 'hopeless',
'Healthy' => 'healthy',
'Legal' => 'legal',
'Friendly' => 'friendly',
'Unfiltered' => 'unfiltered' 'Unfiltered' => 'unfiltered'
] ]
] ]
@ -38,7 +40,9 @@ class NotAlwaysBridge extends BridgeAbstract
#print_r($post); #print_r($post);
$item = []; $item = [];
$item['uri'] = $post->find('h1', 0)->find('a', 0)->href; $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 . '<br/><br/>' . $storyContent;
$item['title'] = $post->find('h1', 0)->find('a', 0)->innertext; $item['title'] = $post->find('h1', 0)->find('a', 0)->innertext;
$this->items[] = $item; $this->items[] = $item;
} }