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

オープン 初心者向け
#4,569 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@AksharP5 がすでに取り組んでいます。

2026年11月27日 から。

  • #4570 @AksharP5 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
mysql, typescript
領域
database, frontend

調査の方向性

caps-page-data.tsxを読み、sharedOrganizationsクエリを、shared_videosを使うlib/folder.tsの共有検索と比較してください。まず、CapsPageViewがMy Capsの共有リストをどのように構築するかをたどってください。issueによると、共有されていないプライベートなCapに対して、MySQL 8.4はそのCap自身の組織を返します。そのCapがフォルダカードと同様にMy Capsで「Not shared」と表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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)
主要言語
Rust
スター
25.4k
フォーク
2.4k
平均マージ
19時間 49分
マージ済み PR(30日)
701

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CapSoftware/Cap のほかの issue

CapSoftware/Cap の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。