don't allow posts from blocked hosts
This commit is contained in:
parent
33b2080d38
commit
86fb8cdfc6
4
web.go
4
web.go
|
@ -248,6 +248,10 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
http.NotFound(w, r)
|
http.NotFound(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if stealthmode(user.ID, r) {
|
||||||
|
http.NotFound(w, r)
|
||||||
|
return
|
||||||
|
}
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
io.Copy(&buf, r.Body)
|
io.Copy(&buf, r.Body)
|
||||||
payload := buf.Bytes()
|
payload := buf.Bytes()
|
||||||
|
|
Loading…
Reference in New Issue