Ensure side nav streams aren't duplicated in sync

This commit is contained in:
Amelia 2025-06-30 21:51:13 +02:00
parent 4c0faa755d
commit 7847ce4c1b
No known key found for this signature in database
GPG key ID: D6D0ECE365407EAA
3 changed files with 10 additions and 2 deletions

View file

@ -80,7 +80,7 @@ public class AccountController : BaseApiController
[HttpGet]
public async Task<ActionResult<UserDto>> GetCurrentUserAsync()
{
var user = await _unitOfWork.UserRepository.GetUserByIdAsync(User.GetUserId(), AppUserIncludes.UserPreferences);
var user = await _unitOfWork.UserRepository.GetUserByIdAsync(User.GetUserId(), AppUserIncludes.UserPreferences | AppUserIncludes.SideNavStreams);
if (user == null) throw new UnauthorizedAccessException();
var oidcSettings = (await _unitOfWork.SettingsRepository.GetSettingsDtoAsync()).OidcConfig;