From 79c32105fc92d5dab371b2feb41be3a9b37f344f Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Mon, 28 Dec 2015 09:45:23 +0100 Subject: [PATCH] datasize not meaningful when all size are returned in api/friendica/photo --- include/api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/api.php b/include/api.php index 8a84d895f4..d2d010c727 100644 --- a/include/api.php +++ b/include/api.php @@ -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++) {