mirror of https://github.com/usememos/memos.git
Fixes #5214 The CreateMemo and CreateMemoComment endpoints now respect the optional memo_id and comment_id parameters as documented in the API proto definitions. Changes: - Check if request.MemoId is provided when creating a memo - Use custom memo ID if provided, otherwise generate UUID - Validate uniqueness before creation to provide clear error messages - Pass comment_id parameter in CreateMemoComment - Existing UID validation via base.UIDMatcher ensures format compliance - Database UNIQUE constraint on uid column prevents duplicates The fix maintains backward compatibility - when memo_id is not provided, the system continues to auto-generate UUIDs as before. |
||
|---|---|---|
| .. | ||
| test | ||
| acl.go | ||
| acl_config.go | ||
| activity_service.go | ||
| attachment_service.go | ||
| auth.go | ||
| auth_service.go | ||
| auth_service_client_info_test.go | ||
| common.go | ||
| health_service.go | ||
| idp_service.go | ||
| instance_service.go | ||
| logger_interceptor.go | ||
| memo_attachment_service.go | ||
| memo_relation_service.go | ||
| memo_service.go | ||
| memo_service_converter.go | ||
| memo_service_filter.go | ||
| reaction_service.go | ||
| resource_name.go | ||
| shortcut_service.go | ||
| test_auth.go | ||
| user_service.go | ||
| user_service_stats.go | ||
| v1.go | ||