Skip to content

Commit

Permalink
fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan committed Sep 20, 2023
1 parent cf7e3ee commit 261aede
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bridges/TelegramBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ public function collectData()
$item['title'] = $this->itemTitle;
$item['timestamp'] = $messageDiv->find('span.tgme_widget_message_meta', 0)->find('time', 0)->datetime;
$item['enclosures'] = $this->enclosures;
$author = trim($messageDiv->find('a.tgme_widget_message_owner_name', 0)->plaintext);
$item['author'] = html_entity_decode($author, ENT_QUOTES);

$messageOwner = $messageDiv->find('a.tgme_widget_message_owner_name', 0);
if ($messageOwner) {
$item['author'] = html_entity_decode(trim($messageOwner->plaintext), ENT_QUOTES);
}

$this->items[] = $item;
}
Expand Down

0 comments on commit 261aede

Please sign in to comment.