all repos — honk @ bd0905f4e16d392b10b9d269cba6f5d5bc9c99fc

my fork of honk

need to reorder this logic now, seems to work better
Ted Unangst tedu@tedunangst.com
Tue, 13 Jun 2023 19:39:59 -0400
commit

bd0905f4e16d392b10b9d269cba6f5d5bc9c99fc

parent

e0746de18cb4581fef70deecac280d4d1161b42d

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M web.goweb.go

@@ -1034,17 +1034,19 @@ var thread []*Honk

var nextlevel func(p *Honk) level := 0 nextlevel = func(p *Honk) { - if level > 4 { - p.Style += fmt.Sprintf(" level%d", 4) - } else { - p.Style += fmt.Sprintf(" level%d", level) - } levelup := true if pp := honkx[p.RID]; pp != nil && p.Honker == pp.Honker { levelup = false + } else { + ilog.Printf("levelup %s", p.XID) } if levelup { level++ + } + if level > 4 { + p.Style += fmt.Sprintf(" level%d", 4) + } else { + p.Style += fmt.Sprintf(" level%d", level) } childs := kids[p.XID] sort.Slice(childs, func(i, j int) bool {