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

未关闭 适合新手
#4,569 1 条评论 0 个 reaction 已指派 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 查询与 lib/folder.ts 中使用 shared_videos 的共享查找进行比较。先追踪 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 分钟
30 天内合并 PR
701

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。