Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: Transcript owner issues
Richie McIlroyd12f163de406
diff --git a/apps/web/actions/videos/get-transcript.ts b/apps/web/actions/videos/get-transcript.tsindex 0a6eb7c3a..dd6a68eef 100644--- a/apps/web/actions/videos/get-transcript.ts+++ b/apps/web/actions/videos/get-transcript.ts@@ -13,14 +13,13 @@ export async function getTranscript(const user = await getCurrentUser();- if (!user || !videoId) {+ if (!videoId) {return {success: false,message: "Missing required data for fetching transcript",};}- const userId = user.id;const query = await db().select({video: videos,@@ -41,13 +40,6 @@ export async function getTranscript(const { video, bucket } = result;- if (video.ownerId !== userId) {- return {- success: false,- message: "You don't have permission to access this transcript",- };- }-if (video.transcriptionStatus !== "COMPLETE") {return {success: false,@@ -90,7 +82,7 @@ export async function getTranscript(console.error("[getTranscript] Error fetching transcript:", {error: error instanceof Error ? error.message : error,videoId,- userId+ userId: user?.id});return {success: false,