mirror of
https://github.com/usememos/memos.git
synced 2025-12-18 06:41:32 +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) {
|
func (s *APIV1Service) ListMemos(ctx context.Context, request *v1pb.ListMemosRequest) (*v1pb.ListMemosResponse, error) {
|
||||||
memoFind := &store.FindMemo{
|
memoFind := &store.FindMemo{
|
||||||
// Exclude comments by default.
|
|
||||||
ExcludeComments: !request.ShowComments,
|
ExcludeComments: !request.ShowComments,
|
||||||
}
|
}
|
||||||
if request.State == v1pb.State_ARCHIVED {
|
if request.State == v1pb.State_ARCHIVED {
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,7 @@ func (s *APIV1Service) ListAllUserStats(ctx context.Context, _ *v1pb.ListAllUser
|
||||||
|
|
||||||
normalStatus := store.Normal
|
normalStatus := store.Normal
|
||||||
memoFind := &store.FindMemo{
|
memoFind := &store.FindMemo{
|
||||||
// Exclude comments by default.
|
ExcludeComments: false,
|
||||||
ExcludeComments: true,
|
|
||||||
ExcludeContent: true,
|
ExcludeContent: true,
|
||||||
RowStatus: &normalStatus,
|
RowStatus: &normalStatus,
|
||||||
}
|
}
|
||||||
|
|
@ -84,8 +83,7 @@ func (s *APIV1Service) GetUserStats(ctx context.Context, request *v1pb.GetUserSt
|
||||||
normalStatus := store.Normal
|
normalStatus := store.Normal
|
||||||
memoFind := &store.FindMemo{
|
memoFind := &store.FindMemo{
|
||||||
CreatorID: &userID,
|
CreatorID: &userID,
|
||||||
// Exclude comments by default.
|
ExcludeComments: false,
|
||||||
ExcludeComments: true,
|
|
||||||
ExcludeContent: true,
|
ExcludeContent: true,
|
||||||
RowStatus: &normalStatus,
|
RowStatus: &normalStatus,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue