From 7e191dea0e651e695a2cf0037a15d7fd36ea6c8b Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 16 Nov 2019 02:21:37 -0500 Subject: [PATCH] fix filter saving --- web.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web.go b/web.go index e726bea..ea7bba8 100644 --- a/web.go +++ b/web.go @@ -1805,8 +1805,9 @@ func savehfcs(w http.ResponseWriter, r *http.Request) { filt.Expiration = time.Now().UTC().Add(dur) } - if filt.Actor == "" && filt.Text == "" { + if filt.Actor == "" && filt.Text == "" && !filt.IsAnnounce { log.Printf("blank filter") + http.Error(w, "can't save a blank filter", http.StatusInternalServerError) return }