Update src/Module/Api/Friendica/Photoalbum/Show.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
7bb60776c6
commit
ae8f1a1c5b
1 changed files with 3 additions and 3 deletions
|
@ -68,9 +68,9 @@ class Show extends BaseApi
|
||||||
}
|
}
|
||||||
|
|
||||||
$orderDescending = $request['latest_first'];
|
$orderDescending = $request['latest_first'];
|
||||||
$album = $request['album'];
|
$album = $request['album'];
|
||||||
$condition = ["`uid` = ? AND `album` = ?", $uid, $album];
|
$condition = ["`uid` = ? AND `album` = ?", $uid, $album];
|
||||||
$params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']];
|
$params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']];
|
||||||
|
|
||||||
$limit = $request['limit'];
|
$limit = $request['limit'];
|
||||||
if ($limit > 500) {
|
if ($limit > 500) {
|
||||||
|
|
Loading…
Reference in a new issue