all repos — honk @ c5bb0beb41422b455f0d612a79b698055e7dc595

my fork of honk

fix filter saving
Ted Unangst tedu@tedunangst.com
Sat, 16 Nov 2019 02:21:37 -0500
commit

c5bb0beb41422b455f0d612a79b698055e7dc595

parent

f6841be8c997c563df8d94eb125b5b6b3cfa196f

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M web.goweb.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 }