[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
1 changed files with 6 additions and 2 deletions

View File

@ -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 . '<br/><br/>' . $storyContent;
$item['title'] = $post->find('h1', 0)->find('a', 0)->innertext;
$this->items[] = $item;
}