mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
Remove undocumented use of $_REQUEST['visibility'] in api_fr_photo_create_update()
- Visibility is inferred from ACL strings
This commit is contained in:
parent
42d05bcc1b
commit
d9371d37ad
1 changed files with 1 additions and 1 deletions
|
@ -4219,7 +4219,7 @@ function api_fr_photo_create_update($type)
|
|||
$deny_cid = $_REQUEST['deny_cid' ] ?? null;
|
||||
$allow_gid = $_REQUEST['allow_gid'] ?? null;
|
||||
$deny_gid = $_REQUEST['deny_gid' ] ?? null;
|
||||
$visibility = !empty($_REQUEST['visibility']) && $_REQUEST['visibility'] !== "false";
|
||||
$visibility = !$allow_cid && !$deny_cid && !$allow_gid && !$deny_gid;
|
||||
|
||||
// do several checks on input parameters
|
||||
// we do not allow calls without album string
|
||||
|
|
Loading…
Reference in a new issue