mirror of
https://github.com/friendica/friendica
synced 2024-11-18 15:03:41 +00:00
Remove extraneous comment and fix whitespace between lines for style
This commit is contained in:
parent
0b2c013db4
commit
5288ed46d4
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue