Test-1
All checks were successful
release-tag / release-image (push) Successful in 1m52s

This commit is contained in:
2025-09-29 23:08:34 +02:00
parent 9122ebf2f1
commit b7729e8b39
2 changed files with 46 additions and 26 deletions

View File

@@ -643,6 +643,19 @@ func registerPublicDownloads(mux *http.ServeMux, store filesvc.MeshStore, blobs
defer rc.Close()
serveBlob(w, r, rc, meta, it.Name) // Download-Name aus Store!
return
} else { // ########## HIER EVENTUELL PROBLEM!!! ###########
// Lokal nicht vorhanden → nur aus Mesh ziehen, wenn Owner aktiv ist
it, err := store.Get(r.Context(), filesvc.ID(id))
if err != nil || it.Deleted {
http.NotFound(w, r)
return
}
peers := meshNode.PeerList()
ttl := 2 * time.Minute
if !isOwnerActive(it.Owner, peers, ttl) {
http.NotFound(w, r)
return
}
}
// 3) aus Mesh holen (signiert) und cachen