|
@@ -29,7 +29,6 @@ public sealed class Handler(IAppDbContext db) : IQueryHandler<Query, Result<Resp
|
|
|
m.LastLoginAt,
|
|
m.LastLoginAt,
|
|
|
ChannelSID = m.Channel != null ? m.Channel.SID : null,
|
|
ChannelSID = m.Channel != null ? m.Channel.SID : null,
|
|
|
ChannelHandle = m.Channel != null ? m.Channel.Handle : null,
|
|
ChannelHandle = m.Channel != null ? m.Channel.Handle : null,
|
|
|
- IsDonationPublic = m.MemberApprove != null && m.MemberApprove.IsDonationPublic,
|
|
|
|
|
Stats = m.MemberStats == null ? null : new
|
|
Stats = m.MemberStats == null ? null : new
|
|
|
{
|
|
{
|
|
|
m.MemberStats.FollowerCount,
|
|
m.MemberStats.FollowerCount,
|
|
@@ -69,8 +68,6 @@ public sealed class Handler(IAppDbContext db) : IQueryHandler<Query, Result<Resp
|
|
|
isFollowing = await db.MemberFollow.AsNoTracking().AnyAsync(f => f.FollowerMemberID == viewerID && f.FolloweeMemberID == member.ID, ct);
|
|
isFollowing = await db.MemberFollow.AsNoTracking().AnyAsync(f => f.FollowerMemberID == viewerID && f.FolloweeMemberID == member.ID, ct);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- long? totalDonated = null;
|
|
|
|
|
-
|
|
|
|
|
return new Response
|
|
return new Response
|
|
|
{
|
|
{
|
|
|
MemberID = member.ID,
|
|
MemberID = member.ID,
|
|
@@ -96,8 +93,6 @@ public sealed class Handler(IAppDbContext db) : IQueryHandler<Query, Result<Resp
|
|
|
ConsecutiveDays = consecutiveDays,
|
|
ConsecutiveDays = consecutiveDays,
|
|
|
Exp = member.Stats?.Exp ?? 0,
|
|
Exp = member.Stats?.Exp ?? 0,
|
|
|
LikeReceivedCount = member.Stats?.LikeReceivedCount ?? 0,
|
|
LikeReceivedCount = member.Stats?.LikeReceivedCount ?? 0,
|
|
|
- TotalDonatedAmount = totalDonated,
|
|
|
|
|
- IsDonationPublic = member.IsDonationPublic,
|
|
|
|
|
IsFollowing = isFollowing,
|
|
IsFollowing = isFollowing,
|
|
|
IsSelf = isSelf
|
|
IsSelf = isSelf
|
|
|
};
|
|
};
|