Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(notifications): respect pauseViews preference for authenticated first-view email
Richie McIlroy5ba16112d683
diff --git a/apps/web/lib/Notification.ts b/apps/web/lib/Notification.tsindex 92afd06a4..64e8c0e53 100644--- a/apps/web/lib/Notification.ts+++ b/apps/web/lib/Notification.ts@@ -341,9 +341,11 @@ export async function sendFirstViewEmail(if (!params.isAnonymous && params.viewerUserId === videoWithOwner.ownerId)return;+ const preferences = videoWithOwner.preferences as UserPreferences;if (params.isAnonymous) {- const preferences = videoWithOwner.preferences as UserPreferences;if (preferences?.notifications?.pauseAnonViews) return;+ } else {+ if (preferences?.notifications?.pauseViews) return;}const [result] = await database