From 5288ed46d4c2809349060608a87642518fad280d Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Tue, 13 Dec 2022 16:04:03 -0500 Subject: [PATCH] Remove extraneous comment and fix whitespace between lines for style --- src/Module/Api/Friendica/Photoalbum/Show.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Module/Api/Friendica/Photoalbum/Show.php b/src/Module/Api/Friendica/Photoalbum/Show.php index c1a795950..ac9573da3 100644 --- a/src/Module/Api/Friendica/Photoalbum/Show.php +++ b/src/Module/Api/Friendica/Photoalbum/Show.php @@ -62,17 +62,16 @@ class Show extends BaseApi 'limit' => 50, // Maximum number of results to return. Defaults to 50. Max 500 'latest_first' => false, // Whether to reverse the order so newest are first ], $request); + if (empty($request['album'])) { throw new HTTPException\BadRequestException('No album name specified.'); } - $orderDescending = $request['latest_first']; $album = $request['album']; $condition = ["`uid` = ? AND `album` = ?", $uid, $album]; $params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']]; - //'limit' => [$request['offset'], $request['limit']] $limit = $request['limit']; if ($limit > 500) { $limit = 500;