From 86fb8cdfc69a3733a44c69506fc1d182c48058eb Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 22 Sep 2019 15:36:06 -0400 Subject: [PATCH] don't allow posts from blocked hosts --- web.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web.go b/web.go index 3e9d774..b4bd180 100644 --- a/web.go +++ b/web.go @@ -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()