mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Update Friendica Photo API endpoint fix to pass null for scale when not applied
This commit is contained in:
parent
46607598f3
commit
4e5794c99d
2 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ class Photo extends BaseApi
|
|||
throw new HTTPException\BadRequestException('No photo id.');
|
||||
}
|
||||
|
||||
$scale = (!empty($request['scale']) ? intval($request['scale']) : -1);
|
||||
$scale = (!empty($request['scale']) ? intval($request['scale']) : null);
|
||||
$photo_id = $request['photo_id'];
|
||||
|
||||
// prepare json/xml output with data from database for the requested photo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue