From d63a3492561123d9d0945b72c5495866288e57ce Mon Sep 17 00:00:00 2001 From: igeekfan Date: Thu, 18 Jul 2024 10:16:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=94=A8=E6=88=B7=E5=85=B3=E6=B3=A8?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Blog/UserSubscribes/UserSubscribeService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });