Skip to content

Commit

Permalink
[VkBridge] Fix missing feed title (#3737)
Browse files Browse the repository at this point in the history
  • Loading branch information
em92 authored Oct 11, 2023
1 parent 145bd10 commit 7e18391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridges/VkBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ public function collectData()
break;
}
}
$pageName = $html->find('.page_name', 0);
$pageName = $html->find('meta[property="og:title"]', 0);
if (is_object($pageName)) {
$pageName = $pageName->plaintext;
$this->pageName = htmlspecialchars_decode($pageName);
$pageName = $pageName->getAttribute('content');
$this->pageName = $pageName;
}
foreach ($html->find('div.replies') as $comment_block) {
$comment_block->outertext = '';
Expand Down

0 comments on commit 7e18391

Please sign in to comment.