mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 17:44:48 +02:00
fix: small notice errors (#3677)
* fix notice * fix notice * tweak * tweaks
This commit is contained in:
parent
e6aef73a02
commit
0bf38e5c56
4 changed files with 29 additions and 27 deletions
|
@ -55,8 +55,11 @@ class TelegramBridge extends BridgeAbstract
|
|||
$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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue