1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-11 19:14:09 +02:00

fix(binance): plus some other tweaks (#3753)

This commit is contained in:
Dag
2023-10-13 20:48:08 +02:00
committed by GitHub
parent fd52b9b9a4
commit 5f37c72be0
9 changed files with 46 additions and 53 deletions

View File

@@ -193,7 +193,7 @@ class MastodonBridge extends BridgeAbstract
&& preg_match('/^http(s|):\/\//', $attachment['url'], $match)
) {
$item['content'] = $item['content'] . '<br /><img ';
if ($attachment['name']) {
if (isset($attachment['name'])) {
$item['content'] .= sprintf('alt="%s" ', $attachment['name']);
}
$item['content'] .= sprintf('src="%s" />', $attachment['url']);