diff --git a/src/LinCms.Application/Blog/UserSubscribes/UserSubscribeService.cs b/src/LinCms.Application/Blog/UserSubscribes/UserSubscribeService.cs index 37b96268..6dadac33 100644 --- a/src/LinCms.Application/Blog/UserSubscribes/UserSubscribeService.cs +++ b/src/LinCms.Application/Blog/UserSubscribes/UserSubscribeService.cs @@ -48,7 +48,7 @@ public PagedResultDto GetUserSubscribeeeList(UserSubscribeSear Avatar = r.SubscribeUser.Avatar, Username = r.SubscribeUser.Username, }, - IsSubscribeed = userSubscribeRepository.Select.Any(r => r.CreateUserId == CurrentUser.FindUserId() && r.SubscribeUserId == r.SubscribeUserId) + IsSubscribeed = userSubscribeRepository.Select.Any(u => u.CreateUserId == CurrentUser.FindUserId() && u.SubscribeUserId == r.SubscribeUserId) }); userSubscribes.ForEach(r => { r.Subscribeer.Avatar = fileRepository.GetFileUrl(r.Subscribeer.Avatar); });