[twitter] Ward against missing remote_images array key
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1345387060pull/1331/head
parent
e553b6cc9b
commit
cab20de6d1
|
@ -783,7 +783,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
$post = [];
|
||||
|
||||
if (!empty($msgarr['images']) || !empty($msgarr['remote_images'])) {
|
||||
Logger::info('Got images', ['id' => $b['id'], 'images' => $msgarr['images'], 'remote_images' => $msgarr['remote_images']]);
|
||||
Logger::info('Got images', ['id' => $b['id'], 'images' => $msgarr['images'] ?? [], 'remote_images' => $msgarr['remote_images'] ?? []]);
|
||||
try {
|
||||
$media_ids = [];
|
||||
foreach ($msgarr['images'] ?? [] as $image) {
|
||||
|
|
Loading…
Reference in New Issue