fix filter saving
Ted Unangst tedu@tedunangst.com
Sat, 16 Nov 2019 02:21:37 -0500
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -1805,8 +1805,9 @@ if dur := parseDuration(r.FormValue("filtduration")); dur > 0 {
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 }