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:49 -05:00 committed by GitHub
parent d74345782a
commit 7bb60776c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,13 +54,13 @@ class Show extends BaseApi
protected function rawContent(array $request = []) protected function rawContent(array $request = [])
{ {
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ); BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID(); $uid = BaseApi::getCurrentUserID();
$type = $this->getRequestValue($this->parameters, 'extension', 'json'); $type = $this->getRequestValue($this->parameters, 'extension', 'json');
$request = $this->getRequest([ $request = $this->getRequest([
'album' => '', // Get pictures in this album 'album' => '', // Get pictures in this album
'offset' => 0, // Return results offset by this value 'offset' => 0, // Return results offset by this value
'limit' => 50, // Maximum number of results to return. Defaults to 50. Max 500 '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 'latest_first' => false, // Whether to reverse the order so newest are first
], $request); ], $request);
if (empty($request['album'])) { if (empty($request['album'])) {