fix: flickr (#3104)

This commit is contained in:
Dag 2022-10-17 00:38:57 +02:00 committed by GitHub
parent 37f1ab726b
commit 58e321c915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -243,7 +243,8 @@ class FlickrBridge extends BridgeAbstract
{
$areas = [];
foreach ($model['sizes'] as $size) {
foreach ($model['sizes']['data'] as $size) {
$size = $size['data'];
$areas[$size['width'] * $size['height']] = $size['url'];
}
@ -255,7 +256,8 @@ class FlickrBridge extends BridgeAbstract
$areas = [];
$limit = 320 * 240;
foreach ($model['sizes'] as $size) {
foreach ($model['sizes']['data'] as $size) {
$size = $size['data'];
$image_area = $size['width'] * $size['height'];
if ($image_area >= $limit) {