all repos — honk @ e0746de18cb4581fef70deecac280d4d1161b42d

my fork of honk

another try at flattening logic
Ted Unangst tedu@tedunangst.com
Tue, 13 Jun 2023 19:26:35 -0400
commit

e0746de18cb4581fef70deecac280d4d1161b42d

parent

e0f8106c474bed0effa314db6b334d46dbe8bbf9

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M web.goweb.go

@@ -1023,6 +1023,9 @@ honkx := make(map[string]*Honk)

kids := make(map[string][]*Honk) for _, h := range honks { honkx[h.XID] = h + if h.RID == "" { + honkx[""] = h + } rid := h.RID kids[rid] = append(kids[rid], h) }

@@ -1037,7 +1040,7 @@ } else {

p.Style += fmt.Sprintf(" level%d", level) } levelup := true - if pp := honkx[p.RID]; pp == nil || p.Honker == pp.Honker { + if pp := honkx[p.RID]; pp != nil && p.Honker == pp.Honker { levelup = false } if levelup {