mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 01:23:41 +00:00
[twitter] Ward against missing remote_images array key
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1345387060
This commit is contained in:
parent
e553b6cc9b
commit
cab20de6d1
1 changed files with 1 additions and 1 deletions
|
@ -783,7 +783,7 @@ function twitter_post_hook(App $a, array &$b)
|
||||||
$post = [];
|
$post = [];
|
||||||
|
|
||||||
if (!empty($msgarr['images']) || !empty($msgarr['remote_images'])) {
|
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 {
|
try {
|
||||||
$media_ids = [];
|
$media_ids = [];
|
||||||
foreach ($msgarr['images'] ?? [] as $image) {
|
foreach ($msgarr['images'] ?? [] as $image) {
|
||||||
|
|
Loading…
Reference in a new issue