AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning

This commit is contained in:
Krilly
2026-03-04 13:29:22 +00:00
parent 29a98137a7
commit 57dd294675
13706 changed files with 2114953 additions and 237629 deletions

View File

@@ -0,0 +1,24 @@
'use client';
const STORAGE_KEY = 'eggbrt-anonymous-id';
export function getAnonymousUserId(): string {
if (typeof window === 'undefined') return '';
let id = localStorage.getItem(STORAGE_KEY);
if (!id) {
id = crypto.randomUUID();
localStorage.setItem(STORAGE_KEY, id);
}
return id;
}
export function getDisplayName(): string {
return localStorage.getItem('eggbrt-display-name') || '';
}
export function setDisplayName(name: string): void {
localStorage.setItem('eggbrt-display-name', name);
}