Skip to content

Open source CapCut alternative.

TypeScript

fix(site): entity refs announce themselves as timeline references

David Le8124a4112723
diff --git a/site/src/cut/lib/refMedia.ts b/site/src/cut/lib/refMedia.ts
index 533825c0..dd9f2112 100644
--- a/site/src/cut/lib/refMedia.ts
+++ b/site/src/cut/lib/refMedia.ts
@@ -407,7 +407,12 @@ export async function refsToParts(
continue;
}
if (ref.kind === "text") {
- parts.push({ text: `Attached file "${ref.name}":\n${await readRefText(ref)}` });
+ parts.push({
+ text:
+ ref.scope === "entity"
+ ? `Referenced timeline entity "${ref.name}":\n${await readRefText(ref)}`
+ : `Attached file "${ref.name}":\n${await readRefText(ref)}`,
+ });
continue;
}
if (ref.kind === "video" && ref.t !== undefined) {