datasize not meaningful when all size are returned in api/friendica/photo
This commit is contained in:
parent
0664ace260
commit
79c32105fc
|
@ -2873,6 +2873,8 @@
|
|||
$data = array('photo' => $r[0]);
|
||||
if ($scale !== false) {
|
||||
$data['photo']['data'] = base64_encode($data['photo']['data']);
|
||||
} else {
|
||||
unset($data['photo']['datasize']); //needed only with scale param
|
||||
}
|
||||
$data['photo']['link'] = array();
|
||||
for($k=intval($data['photo']['minscale']); $k<=intval($data['photo']['maxscale']); $k++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user