From c1261f42003bf01cc1e007d6d00e7c6db40d78ed Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 6 Sep 2019 18:40:50 -0400 Subject: [PATCH] cut back on number of honks in mechanical endpoints --- honk.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/honk.go b/honk.go index d381de8..3e9250d 100644 --- a/honk.go +++ b/honk.go @@ -248,6 +248,9 @@ func showrss(w http.ResponseWriter, r *http.Request) { } else { honks = getpublichonks() } + if len(honks) > 20 { + honks = honks[0:20] + } reverbolate(-1, honks) home := fmt.Sprintf("https://%s/", serverName) @@ -549,6 +552,9 @@ func outbox(w http.ResponseWriter, r *http.Request) { } honks := gethonksbyuser(name, false) + if len(honks) > 20 { + honks = honks[0:20] + } var jonks []junk.Junk for _, h := range honks {