mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
fix: various small notice fixes (#3474)
* fix(patreon): php notice * fix(pepperbridge): php notice * fix(ebay): php notice * fix(tiktok): php notice * fix(yandex): fix notice * fix(justwatch): notice * lint
This commit is contained in:
parent
372880b5ef
commit
748fc9fd65
9 changed files with 50 additions and 25 deletions
|
@ -100,12 +100,14 @@ class PatreonBridge extends BridgeAbstract
|
|||
);
|
||||
$item['author'] = $user->full_name;
|
||||
|
||||
if (isset($post->attributes->image)) {
|
||||
$item['content'] .= '<p><a href="'
|
||||
. $post->attributes->url
|
||||
. '"><img src="'
|
||||
. $post->attributes->image->thumb_url
|
||||
. '" /></a></p>';
|
||||
$image = $post->attributes->image ?? null;
|
||||
if ($image) {
|
||||
$logo = sprintf(
|
||||
'<p><a href="%s"><img src="%s" /></a></p>',
|
||||
$post->attributes->url,
|
||||
$image->thumb_url ?? $image->url ?? $this->getURI()
|
||||
);
|
||||
$item['content'] .= $logo;
|
||||
}
|
||||
|
||||
if (isset($post->attributes->content)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue