mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 00:59:35 +00:00
fix(telegram): add note if content is omitted from preview page (#4210)
* fix(telegram): add note if content is omitted from preview page * lint
This commit is contained in:
parent
2e6e246759
commit
133dbf87c5
@ -70,8 +70,14 @@ class TelegramBridge extends BridgeAbstract
|
|||||||
{
|
{
|
||||||
$message = '';
|
$message = '';
|
||||||
|
|
||||||
|
$notSupported = $messageDiv->find('div.message_media_not_supported_wrap', 0);
|
||||||
|
if ($notSupported) {
|
||||||
|
// For unknown reasons, the telegram preview page omits the content of this post
|
||||||
|
$message = 'RSS-Bridge was unable to find the content of this post.<br><br>' . $notSupported->innertext;
|
||||||
|
}
|
||||||
|
|
||||||
if ($messageDiv->find('div.tgme_widget_message_forwarded_from', 0)) {
|
if ($messageDiv->find('div.tgme_widget_message_forwarded_from', 0)) {
|
||||||
$message = $messageDiv->find('div.tgme_widget_message_forwarded_from', 0)->innertext . '<br><br>';
|
$message .= $messageDiv->find('div.tgme_widget_message_forwarded_from', 0)->innertext . '<br><br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($messageDiv->find('a.tgme_widget_message_reply', 0)) {
|
if ($messageDiv->find('a.tgme_widget_message_reply', 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user