mirror of
https://github.com/usememos/memos.git
synced 2025-12-17 14:19:17 +08:00
fix: count and search tags in comments (#4671)
This commit is contained in:
parent
77524b7871
commit
55c12c2a35
2 changed files with 3 additions and 6 deletions
|
|
@ -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…
Add table
Reference in a new issue