forked from friendica/friendica-addons
Merge pull request #1331 from MrPetovan/bug/warnings
[twitter] Ward against missing remote_images array key
This commit is contained in:
commit
a2dde9cd24
|
@ -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