Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(api): always verify video owner from database instead of trusting client
Richie McIlroy4a03a8a2d895
diff --git a/apps/web/app/api/analytics/track/route.ts b/apps/web/app/api/analytics/track/route.tsindex 49a3c7677..a6a79e19e 100644--- a/apps/web/app/api/analytics/track/route.ts+++ b/apps/web/app/api/analytics/track/route.ts@@ -99,7 +99,7 @@ export async function POST(request: NextRequest) {return currentUser.id;},});- if (userId && body.ownerId && userId === body.ownerId) {+ if (userId) {const ownerIdResult = yield* Effect.tryPromise(() =>db().select({ ownerId: videos.ownerId })