fix filter saving

This commit is contained in:
Ted Unangst 2019-11-16 02:21:37 -05:00
parent a8344470b8
commit 7e191dea0e
1 changed files with 2 additions and 1 deletions

3
web.go
View File

@ -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
}