Fix Friendica Photo GET API endpoint to work without explicit scale term

This commit is contained in:
Hank Grabowski 2022-12-12 11:27:59 -05:00
parent 9b8b1be3e7
commit 46607598f3
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ class Photo extends BaseApi
throw new HTTPException\BadRequestException('No photo id.');
}
$scale = (!empty($request['scale']) ? intval($request['scale']) : false);
$scale = (!empty($request['scale']) ? intval($request['scale']) : -1);
$photo_id = $request['photo_id'];
// prepare json/xml output with data from database for the requested photo