mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-28 10:30:12 +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:
@@ -39,7 +39,12 @@ class YandexZenBridge extends BridgeAbstract
|
||||
|
||||
$item['uri'] = $post->share_link;
|
||||
$item['title'] = $post->title;
|
||||
$item['timestamp'] = date(DateTimeInterface::ATOM, $post->publication_date);
|
||||
|
||||
$publicationDateUnixTimestamp = $post->publication_date ?? null;
|
||||
if ($publicationDateUnixTimestamp) {
|
||||
$item['timestamp'] = date(DateTimeInterface::ATOM, $publicationDateUnixTimestamp);
|
||||
}
|
||||
|
||||
$item['content'] = $post->text;
|
||||
$item['enclosures'] = [
|
||||
$post->image,
|
||||
|
Reference in New Issue
Block a user