From 2f52375872c0d5341985470cce63cf73a3bd148e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 14 Jun 2023 20:40:11 -0400 Subject: [PATCH] try to keep the thread flat for simple reply chains --- web.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web.go b/web.go index 307e2cb..b862f54 100644 --- a/web.go +++ b/web.go @@ -1038,6 +1038,11 @@ func threadsort(honks []*Honk) []*Honk { if pp := honkx[p.RID]; p.RID == "" || (pp != nil && p.Honker == pp.Honker) { levelup = false } + if level > 0 && len(kids[p.RID]) == 1 { + if pp := honkx[p.RID]; pp != nil && len(kids[pp.RID]) == 1 { + levelup = false + } + } if levelup { level++ }