cut back on number of honks in mechanical endpoints

This commit is contained in:
Ted Unangst 2019-09-06 18:40:50 -04:00
parent 6eb416eea3
commit c1261f4200
1 changed files with 6 additions and 0 deletions

View File

@ -248,6 +248,9 @@ func showrss(w http.ResponseWriter, r *http.Request) {
} else { } else {
honks = getpublichonks() honks = getpublichonks()
} }
if len(honks) > 20 {
honks = honks[0:20]
}
reverbolate(-1, honks) reverbolate(-1, honks)
home := fmt.Sprintf("https://%s/", serverName) home := fmt.Sprintf("https://%s/", serverName)
@ -549,6 +552,9 @@ func outbox(w http.ResponseWriter, r *http.Request) {
} }
honks := gethonksbyuser(name, false) honks := gethonksbyuser(name, false)
if len(honks) > 20 {
honks = honks[0:20]
}
var jonks []junk.Junk var jonks []junk.Junk
for _, h := range honks { for _, h := range honks {