From c53dab9e6bdcd7e3bda54d6aab37deb174e1fcab Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 21 May 2023 20:25:26 +0400 Subject: [PATCH] Oops, that site argument isn't needed. --- internal/http/handlers.go | 2 +- web/templates/deleted.jade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 4887aac..2b61ab4 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -210,7 +210,7 @@ func (h *UploadHandlers) Delete(w http.ResponseWriter, r *http.Request) { h.logDelete.Printf("| %s | %s | %s | %s", r.Header.Get("X-Real-IP"), netTyp, saltedHash, r.UserAgent()) w.WriteHeader(http.StatusNoContent) - web.Deleted(utils.MainSite(r.Host), site) + web.Deleted(utils.MainSite(r.Host)) } func NotFound(w http.ResponseWriter, r *http.Request) { diff --git a/web/templates/deleted.jade b/web/templates/deleted.jade index d7eb0a5..2962b4d 100644 --- a/web/templates/deleted.jade +++ b/web/templates/deleted.jade @@ -4,7 +4,7 @@ block header h1 Deleted block body - :go:func Deleted(mainSite, site string) + :go:func Deleted(mainSite string) section h2 File was successfully deleted. center