We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f587ef1 commit f3530e7Copy full SHA for f3530e7
1 file changed
apps/web/lib/Notification.ts
@@ -376,13 +376,15 @@ export async function sendFirstViewEmail(
376
? `https://cap.link/${params.videoId}`
377
: `${serverEnv().WEB_URL}/s/${params.videoId}`;
378
379
+ const displayName = videoWithOwner.videoName || "Untitled Video";
380
+
381
await sendEmail({
382
email: videoWithOwner.ownerEmail,
- subject: `Your Cap "${videoWithOwner.videoName}" just got its first view!`,
383
+ subject: `Your Cap "${displayName}" just got its first view!`,
384
react: FirstView({
385
386
url: videoUrl,
- videoName: videoWithOwner.videoName,
387
+ videoName: displayName,
388
viewerName,
389
}),
390
});
0 commit comments