Formatting

This commit is contained in:
Michael 2021-11-24 23:06:28 +00:00
parent c4d52feea5
commit 242fd646d2
3 changed files with 21 additions and 21 deletions

View file

@ -36,14 +36,14 @@ class VerifyCredentials extends BaseApi
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();
$skip_status = $_REQUEST['skip_status'] ?? false;
$user_info = DI::twitterUser()->createFromUserId($uid, $skip_status)->toArray();
// "verified" isn't used here in the standard
unset($user_info["verified"]);
// "uid" is only needed for some internal stuff, so remove it from here
unset($user_info['uid']);