My Caps shows "Shared" on private Caps that were never shared

Open Beginner friendly
#4,569 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@AksharP5 is already working on this.

Since Nov 27, 2026.

  • #4570 by @AksharP5 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
mysql, typescript
Domain
database, frontend

Research direction

Read caps-page-data.tsx and compare its sharedOrganizations query with the share lookup in lib/folder.ts, which uses shared_videos. Start by tracing how CapsPageView builds the share lists for My Caps; the issue reports MySQL 8.4 returns the Cap's own organization for an unshared private Cap. Done when that Cap shows “Not shared” on My Caps, matching its folder card.

Written by the indexing model from the issue text.

Description

Description

My Caps labels every Cap "Shared", including private Caps that nobody else can open. "Not shared" never appears on the My Caps root page. Move the same Cap into a folder and its card says "Not shared".

The card shows "Not shared" only when the Cap is private and its sharedOrganizations and sharedSpaces lists are both empty. On My Caps, caps-page-data.tsx fills sharedOrganizations by joining the Cap's own organization (videos.orgId), not the organizations it was shared with (shared_videos). Every Cap belongs to an organization, so the list is never empty and the card always says "Shared". The folder page (lib/folder.ts) joins through shared_videos, which is why it gets this right.

Expected: a private Cap with no organization or space shares says "Not shared", the same as it does inside a folder.
Actual: it says "Shared", which tells the owner that people can see a recording when only the owner can. VideosPolicy lets an org member view a private Cap only through shared_videos or a space share.

Reproduction
  1. In the web dashboard, make a Cap private, or record one in an org that has "Start new recordings private" turned on.
  2. Don't share it with the organization or a space.
  3. Open My Caps. The card says "Shared".
  4. Move the Cap into a folder and open the folder. The same card says "Not shared".

The same thing happens when the page loader runs against MySQL 8.4 (baseline 2bffa46a4). For a private Cap with no shares, CapsPageView returns sharedOrganizations: [<its own org>].

Additional Context
  • Cap version: web, main at 2bffa46a4
  • Operating system, version: any (server-side query)
Dominant language
Rust
Stars
25.4k
Forks
2.4k
Avg merge
19h 49m
Merged PRs (30d)
701

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CapSoftware/Cap

All issues in CapSoftware/Cap

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.