Add public/private news system with homepage display

This commit is contained in:
Torsten Schulz (local)
2025-10-21 15:26:28 +02:00
parent f0b628d746
commit 72c1039aa3
28 changed files with 272 additions and 126 deletions

View File

@@ -69,6 +69,7 @@ export async function saveNews(newsData) {
const newItem = {
...newsData,
id: randomUUID(), // Cryptographically secure unique ID
isPublic: newsData.isPublic || false, // Default to internal
created: new Date().toISOString(),
updated: new Date().toISOString()
}