From cbd31e8893154dfe545dac9cbfab2d4aeabdf533 Mon Sep 17 00:00:00 2001 From: Midou36O Date: Tue, 13 Sep 2022 14:47:10 +0100 Subject: [PATCH] fuck it, commit to main. --- api/announcements.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/announcements.go b/api/announcements.go index 7c40dea..d6703dc 100644 --- a/api/announcements.go +++ b/api/announcements.go @@ -32,8 +32,8 @@ func handleAnnouncements(w http.ResponseWriter, r *http.Request) { http.Error(w, "You need to provide the authorization token given to you by your system administrator in order to post an announcement.", http.StatusUnauthorized) return } else { - if r.FormValue("title") == "" || r.FormValue("link") == "" || r.FormValue("severity") == "" { - http.Error(w, "Your request is not proper. Please add a title, link, and severity.", http.StatusBadRequest) + if r.FormValue("title") == "" || r.FormValue("severity") == "" { + http.Error(w, "Your request is not proper. Please add a title and severity.", http.StatusBadRequest) return } else { w.WriteHeader(http.StatusOK)