From c318eaed60d430745f5f7053eff03a1bbf8e68f2 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 24 Sep 2019 17:03:20 -0400 Subject: [PATCH] for completeness, more stealthing --- web.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web.go b/web.go index e6e4a1f..72d94fc 100644 --- a/web.go +++ b/web.go @@ -470,6 +470,10 @@ func emptiness(w http.ResponseWriter, r *http.Request) { http.NotFound(w, r) return } + if stealthmode(user.ID, r) { + http.NotFound(w, r) + return + } colname := "/followers" if strings.HasSuffix(r.URL.Path, "/following") { colname = "/following" @@ -1309,6 +1313,10 @@ func fingerlicker(w http.ResponseWriter, r *http.Request) { http.NotFound(w, r) return } + if stealthmode(user.ID, r) { + http.NotFound(w, r) + return + } j := junk.New() j["subject"] = fmt.Sprintf("acct:%s@%s", user.Name, serverName)