fix: count and search tags in comments (#4671)

pull/5091/head
dangjinghao 2 months ago
parent 77524b7871
commit 55c12c2a35

@ -107,7 +107,6 @@ func (s *APIV1Service) CreateMemo(ctx context.Context, request *v1pb.CreateMemoR
func (s *APIV1Service) ListMemos(ctx context.Context, request *v1pb.ListMemosRequest) (*v1pb.ListMemosResponse, error) {
memoFind := &store.FindMemo{
// Exclude comments by default.
ExcludeComments: !request.ShowComments,
}
if request.State == v1pb.State_ARCHIVED {

@ -22,8 +22,7 @@ func (s *APIV1Service) ListAllUserStats(ctx context.Context, _ *v1pb.ListAllUser
normalStatus := store.Normal
memoFind := &store.FindMemo{
// Exclude comments by default.
ExcludeComments: true,
ExcludeComments: false,
ExcludeContent: true,
RowStatus: &normalStatus,
}
@ -83,9 +82,8 @@ func (s *APIV1Service) GetUserStats(ctx context.Context, request *v1pb.GetUserSt
normalStatus := store.Normal
memoFind := &store.FindMemo{
CreatorID: &userID,
// Exclude comments by default.
ExcludeComments: true,
CreatorID: &userID,
ExcludeComments: false,
ExcludeContent: true,
RowStatus: &normalStatus,
}

Loading…
Cancel
Save