Fix duration saying never when it's unlimited

This commit is contained in:
2026-09-13 09:10:46 +02:00
parent e7344f8aab
commit b24467c37d
5 changed files with 22 additions and 4 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ func (s *Server) handleIndex(w http.ResponseWriter, r *http.Request) {
s.render(w, http.StatusOK, "index.html", indexPage{
page: s.page(r, "Upload", true),
MaxSize: config.FormatSize(lim.MaxSize),
MaxExpiry: config.FormatDuration(lim.MaxExpiry),
DefaultExpiry: config.FormatDuration(lim.DefaultExpiry),
MaxExpiry: config.FormatLifetime(lim.MaxExpiry),
DefaultExpiry: config.FormatLifetime(lim.DefaultExpiry),
AbsBase: s.absBase(r),
AllowVanity: lim.AllowVanity,
MaxSizeBytes: lim.MaxSize,