[VkBridge] Fix missing feed title (#3737)

This commit is contained in:
Eugene Molotov 2023-10-11 21:28:54 +05:00 committed by GitHub
parent 145bd10f4c
commit 7e183915a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,10 +76,10 @@ class VkBridge extends BridgeAbstract
break; break;
} }
} }
$pageName = $html->find('.page_name', 0); $pageName = $html->find('meta[property="og:title"]', 0);
if (is_object($pageName)) { if (is_object($pageName)) {
$pageName = $pageName->plaintext; $pageName = $pageName->getAttribute('content');
$this->pageName = htmlspecialchars_decode($pageName); $this->pageName = $pageName;
} }
foreach ($html->find('div.replies') as $comment_block) { foreach ($html->find('div.replies') as $comment_block) {
$comment_block->outertext = ''; $comment_block->outertext = '';