Update src/Module/Api/Friendica/Photoalbum/Show.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Hank G 2022-12-13 16:45:56 -05:00 committed by GitHub
parent 7bb60776c6
commit ae8f1a1c5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,9 +68,9 @@ class Show extends BaseApi
}
$orderDescending = $request['latest_first'];
$album = $request['album'];
$condition = ["`uid` = ? AND `album` = ?", $uid, $album];
$params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']];
$album = $request['album'];
$condition = ["`uid` = ? AND `album` = ?", $uid, $album];
$params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']];
$limit = $request['limit'];
if ($limit > 500) {