fix filter saving
This commit is contained in:
parent
a8344470b8
commit
7e191dea0e
3
web.go
3
web.go
|
@ -1805,8 +1805,9 @@ func savehfcs(w http.ResponseWriter, r *http.Request) {
|
||||||
filt.Expiration = time.Now().UTC().Add(dur)
|
filt.Expiration = time.Now().UTC().Add(dur)
|
||||||
}
|
}
|
||||||
|
|
||||||
if filt.Actor == "" && filt.Text == "" {
|
if filt.Actor == "" && filt.Text == "" && !filt.IsAnnounce {
|
||||||
log.Printf("blank filter")
|
log.Printf("blank filter")
|
||||||
|
http.Error(w, "can't save a blank filter", http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue