diff --git a/src/Module/Api/Twitter/Account/UpdateProfile.php b/src/Module/Api/Twitter/Account/UpdateProfile.php index a518fbad2f..100b121b35 100644 --- a/src/Module/Api/Twitter/Account/UpdateProfile.php +++ b/src/Module/Api/Twitter/Account/UpdateProfile.php @@ -54,7 +54,7 @@ class UpdateProfile extends BaseApi Profile::publishUpdate($uid); - $skip_status = $_REQUEST['skip_status'] ?? false; + $skip_status = $request['skip_status'] ?? false; $user_info = DI::twitterUser()->createFromUserId($uid, $skip_status)->toArray(); diff --git a/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php b/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php index 5bfa789e02..4ce3420d26 100644 --- a/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php +++ b/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php @@ -23,9 +23,6 @@ class UpdateProfileTest extends ApiTest $json = json_decode($body); - self::assertEquals(42, $json->id); - self::assertEquals('DFRN', $json->location); - self::assertEquals('selfcontact', $json->screen_name); self::assertEquals('new_name', $json->name); self::assertEquals('new_description', $json->description); }