fix(frontend): remove clone notifications, allow public podcast access

This commit is contained in:
CREDO23 2026-01-28 00:17:54 +02:00
parent 9a4da10b12
commit 3c835bdf7e
4 changed files with 5 additions and 116 deletions

View file

@ -119,15 +119,6 @@ export function useInbox(
async function startSync() {
try {
// Check for force resync flag (e.g., after clone from public page)
if (localStorage.getItem("surfsense_force_notif_resync") === "true") {
console.log("[useInbox] Force resync flag detected, clearing notifications");
await client.db.exec("DELETE FROM notifications");
localStorage.removeItem("surfsense_force_notif_resync");
// Reset sync key to force a fresh sync
userSyncKeyRef.current = null;
}
const cutoffDate = getSyncCutoffDate();
const userSyncKey = `inbox_${userId}_${cutoffDate}`;