From 138b69e36eef1a8bdae0d3ac84b8f549732e5259 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 3 Jan 2024 08:19:38 +0800 Subject: [PATCH] chore: fix memo comment --- api/v2/memo_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v2/memo_service.go b/api/v2/memo_service.go index 2045ebd1..3655e77c 100644 --- a/api/v2/memo_service.go +++ b/api/v2/memo_service.go @@ -324,7 +324,7 @@ func (s *APIV2Service) CreateMemoComment(ctx context.Context, request *apiv2pb.C if err != nil { return nil, status.Errorf(codes.Internal, "failed to create memo relation") } - if memo.Visibility != apiv2pb.Visibility_PRIVATE { + if memo.Visibility != apiv2pb.Visibility_PRIVATE && memo.CreatorId != relatedMemo.CreatorID { activity, err := s.Store.CreateActivity(ctx, &store.Activity{ CreatorID: memo.CreatorId, Type: store.ActivityTypeMemoComment,