Code-Cleanup: toter Check, none-Sentinel, Login-Jitter raus

- entry.go: redundantes stored != "" entfernt
- filepath-Sentinel "none" -> leerer String (Go-Zero-Value),
  Checks in entry.go/user.go und web/js/app.js vereinfacht
- auth.go: zufaelligen Login-Jitter samt loginJitter-Variable und
  Test-Seam entfernt (war nur Spielerei, kein echter Schutz)
- notes/migrations.md: einmalige "none"->"" Migration dokumentiert

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 11:33:41 +02:00
parent bee1305a2b
commit e210df3e2e
6 changed files with 29 additions and 18 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ function renderEntry(e) {
const when = new Date(e.created_at * 1000).toLocaleString("de-DE");
let media = "";
if (e.filepath && e.filepath !== "none") {
if (e.filepath) {
media = `<img src="/${e.filepath}" alt="" loading="lazy">`;
}