don't allow posts from blocked hosts

master
Ted Unangst 5 years ago
parent 33b2080d38
commit 86fb8cdfc6

@ -248,6 +248,10 @@ func inbox(w http.ResponseWriter, r *http.Request) {
http.NotFound(w, r)
return
}
if stealthmode(user.ID, r) {
http.NotFound(w, r)
return
}
var buf bytes.Buffer
io.Copy(&buf, r.Body)
payload := buf.Bytes()

Loading…
Cancel
Save