Skip to content

Commit

Permalink
feat(api): add ability to know what user is listening (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
zavolo authored Dec 2, 2023
1 parent 41e4383 commit 04eb724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions VKAPI/Handlers/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function getProfileInfo(): object
"last_name" => $this->getUser()->getLastName(),
"home_town" => $this->getUser()->getHometown(),
"status" => $this->getUser()->getStatus(),
"audio_status" => is_null($this->getUser()->getCurrentAudioStatus()) ? NULL : $this->getUser()->getCurrentAudioStatus()->toVkApiStruct($this->getUser()),
"bdate" => is_null($this->getUser()->getBirthday()) ? '01.01.1970' : $this->getUser()->getBirthday()->format('%e.%m.%Y'),
"bdate_visibility" => $this->getUser()->getBirthdayPrivacy(),
"phone" => "+420 ** *** 228", # TODO
Expand Down

0 comments on commit 04eb724

Please sign in to comment.