Skip to content

fix(web): only record share views the viewer is allowed to watch - #3618

Open
yashranaway wants to merge 1 commit into
CapSoftware:mainfrom
yashranaway:fix/view-tracking
Open

yashranaway wants to merge 1 commit into
CapSoftware:mainfrom
yashranaway:fix/view-tracking

Conversation

@yashranaway

@yashranaway yashranaway commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

the share page view endpoint recorded a view for any video id without checking the requester could watch it. anyone could post the id of a private, password locked or email restricted cap and add views to the owner's analytics, and for newer caps that also created "anonymous viewer" notifications and could send the first view email for a video nobody outside could open. the mobile copy of this endpoint and the share page itself both check access.

now before recording it runs the same view policy the share page uses, on the row it already loads. password protected caps still count once the viewer has entered the password, since the verified password cookie comes along with the request. denied requests just record nothing, same as owner views.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; denied viewers are stopped before views and notifications are recorded.

Summary

The tracking endpoint now checks the viewer’s access before recording a view or starting view notifications and emails.

  • Share views are recorded only for people allowed to watch.

Reviews (1) · Last reviewed commit: "fix(web): only record share views the vi..." · Reviewed by Greptile

@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 1, 2026 07:37 Inactive
@vercel

vercel Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 1, 2026 7:37am UTC

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 6cfc5b77 Deployed Nov 1, 2026 by vercel[bot]
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