Skip to content

Conversation

@AmanRajSinghMourya
Copy link
Contributor

@AmanRajSinghMourya AmanRajSinghMourya commented Jan 27, 2026

Discription

  • Add memory share feature allowing users to share memories via public links
  • New database migration for memory_shares table
  • Full CRUD API for memory shares (create, get, delete)
  • Public API endpoints for accessing shared memories without authentication
  • Token-based middleware for public memory access

Changes

  • Migration: 115_create_memory_shares - creates memory_shares table
  • Entity: ente/memory_share.go - types and structs for memory shares
  • Repository: pkg/repo/memory_share.go - database operations
  • Controller: pkg/controller/memory_share/ - business logic
  • Middleware: pkg/middleware/memory_share.go - token authentication
  • Private API: pkg/api/memory_share.go - authenticated endpoints
  • Public API: pkg/api/public_memory_share.go - public access endpoints

Test plan

  • Test creating a memory share
  • Test accessing shared memory via public link
  • Test deleting a memory share
  • Verify token expiration works correctly

@AmanRajSinghMourya AmanRajSinghMourya changed the title Add memory share API for sharing memories via public links [server] Add memory share API for sharing memories via public links Jan 27, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2346c18aa5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant