- Addresses https://github.com/friendica/friendica/issues/9447#issuecomment-
722024085
if ($b['format'] == 'json') {
if (!empty($status->extended_entities->media[0]->media_url_https)) {
- $images = [['src' => $status->extended_entities->media[0]->media_url_https]];
+ $images = [[
+ 'src' => $status->extended_entities->media[0]->media_url_https,
+ 'width' => $status->extended_entities->media[0]->sizes->thumb->w,
+ 'height' => $status->extended_entities->media[0]->sizes->thumb->h,
+ ]];
}
$b['text'] = [