Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ public async Task<IActionResult> GetCurrentUserAsync()
{
var user = await _vrchat.Authentication.GetCurrentUserAsync();

// Profile fields (bio, bio links, badges, ...) are no longer part of CurrentUser.
// They live behind getPublicProfile; asSelf includes the owner-only view.
var profile = await _vrchat.Users.GetPublicProfileAsync(user.Id, asSelf: true);

return Ok(new
{
user.Id,
user.DisplayName,
user.CurrentAvatarImageUrl,
user.Badges,
user.Bio,
user.BioLinks,
profile.Badges,
profile.Bio,
profile.BioLinks,
user.Tags
});
}
Expand All @@ -43,14 +47,18 @@ public async Task<IActionResult> GetUserByIdAsync(string id)
{
var user = await _vrchat.Users.GetUserAsync(id);

// User no longer carries the profile or current-avatar fields; fetch them from the
// public profile instead.
var profile = await _vrchat.Users.GetPublicProfileAsync(id);

return Ok(new
{
user.Id,
user.DisplayName,
user.CurrentAvatarImageUrl,
user.Badges,
user.Bio,
user.BioLinks,
profile.CurrentAvatarImageUrl,
profile.Badges,
profile.Bio,
profile.BioLinks,
user.Tags
});
}
Expand Down