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

This commit is contained in:
dangjinghao 2025-09-14 07:55:38 +00:00
parent 77524b7871
commit 55c12c2a35
2 changed files with 3 additions and 6 deletions

View file

@ -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 {

View file

@ -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,
}