all repos — honk @ 750d79ff5a22cc132d6694f0e09393cd2450e52f

my fork of honk

don't allow posts from blocked hosts
Ted Unangst tedu@tedunangst.com
Sun, 22 Sep 2019 15:36:06 -0400
commit

750d79ff5a22cc132d6694f0e09393cd2450e52f

parent

aaa7a31c50ee6697dd15f76ca27d468577017285

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M web.goweb.go

@@ -248,6 +248,10 @@ if err != nil {

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()