mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:50:12 +00:00
Make API testable & move PhotoAlbum tests to new destination
This commit is contained in:
parent
a0c5c91886
commit
e477cf215d
10 changed files with 174 additions and 96 deletions
|
@ -44,7 +44,7 @@ class Delete extends BaseApi
|
|||
|
||||
// do several checks on input parameters
|
||||
// we do not allow calls without photo id
|
||||
if ($request['photo_id'] == null) {
|
||||
if (empty($request['photo_id'])) {
|
||||
throw new BadRequestException("no photo_id specified");
|
||||
}
|
||||
|
||||
|
|
|
@ -43,10 +43,10 @@ class Update extends BaseApi
|
|||
]);
|
||||
|
||||
// we do not allow calls without album string
|
||||
if ($request['album'] == "") {
|
||||
if (empty($request['album'])) {
|
||||
throw new BadRequestException("no albumname specified");
|
||||
}
|
||||
if ($request['album_new'] == "") {
|
||||
if (empty($request['album_new'])) {
|
||||
throw new BadRequestException("no new albumname specified");
|
||||
}
|
||||
// check if album is existing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue