Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix memo comment

Steven138b69e36eef
diff --git a/api/v2/memo_service.go b/api/v2/memo_service.go
index 2045ebd1a..3655e77c7 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,