More parameter handling improved

This commit is contained in:
Michael 2022-01-16 18:04:05 +00:00
parent 6c767743d1
commit fd4926b0f3
11 changed files with 27 additions and 32 deletions

View file

@ -54,7 +54,7 @@ class Lists extends BaseApi
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
$type = $this->parameters['extension'] ?? '';
$type = $this->getRequestValue($this->parameters, 'extension', 'json');
$photos = Photo::selectToArray(['resource-id'], ["`uid` = ? AND NOT `photo-type` IN (?, ?)", $uid, Photo::CONTACT_AVATAR, Photo::CONTACT_BANNER],
['order' => ['id'], 'group_by' => ['resource-id']]);