mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
Improved handling of boolean input values
This commit is contained in:
parent
e6108668e3
commit
7b68a5956e
13 changed files with 18 additions and 18 deletions
|
@ -56,7 +56,7 @@ class UpdateProfile extends BaseApi
|
|||
|
||||
Profile::publishUpdate($uid);
|
||||
|
||||
$skip_status = $request['skip_status'] ?? false;
|
||||
$skip_status = filter_var($request['skip_status'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
$user_info = DI::twitterUser()->createFromUserId($uid, $skip_status)->toArray();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue