1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-09-01 04:11:54 +02:00

fix: various small fixes (#3580)

This commit is contained in:
Dag
2023-07-31 20:43:18 +02:00
committed by GitHub
parent 8b6eecea25
commit 7e4807530e
8 changed files with 35 additions and 14 deletions

View File

@@ -169,11 +169,19 @@ EOD;
$stickerDiv->find('picture', 0)->style = '';
return $stickerDiv;
} elseif (preg_match(self::BACKGROUND_IMAGE_REGEX, $stickerDiv->find('i', 0)->style, $sticker)) {
return <<<EOD
}
$var = $stickerDiv->find('i', 0);
if ($var) {
$style = $var->style;
if (preg_match(self::BACKGROUND_IMAGE_REGEX, $style, $sticker)) {
return <<<EOD
<a href="{$stickerDiv->children(0)->herf}"><img src="{$sticker[1]}"></a>
EOD;
}
}
return '';
}
private function processPoll($messageDiv)