mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 20:03:40 +00:00
[twitter] Fix media upload failure logging
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-653332270
This commit is contained in:
parent
0d0e182112
commit
18bb5e4992
1 changed files with 2 additions and 1 deletions
|
@ -693,7 +693,8 @@ function twitter_post_hook(App $a, array &$b)
|
|||
Logger::info('Metadata create', ['id' => $b['id'], 'data' => $data, 'return' => json_encode($ret)]);
|
||||
}
|
||||
} else {
|
||||
throw new Exception('Failed upload', ['id' => $b['id'], 'image' => $image['url']]);
|
||||
Logger::error('Failed upload', ['id' => $b['id'], 'image' => $image['url']]);
|
||||
throw new Exception('Failed upload of ' . $image['url']);
|
||||
}
|
||||
}
|
||||
$post['media_ids'] = implode(',', $media_ids);
|
||||
|
|
Loading…
Reference in a new issue