try pulling self reply up in thread
This commit is contained in:
parent
7cc2e6f2da
commit
20a6d2b962
3
web.go
3
web.go
|
@ -1043,6 +1043,9 @@ func threadsort(honks []*Honk) []*Honk {
|
||||||
}
|
}
|
||||||
p.Style += fmt.Sprintf(" level%d", level)
|
p.Style += fmt.Sprintf(" level%d", level)
|
||||||
childs := kids[p.XID]
|
childs := kids[p.XID]
|
||||||
|
sort.SliceStable(childs, func(i, j int) bool {
|
||||||
|
return childs[i].Honker == p.Honker && childs[j].Honker != p.Honker
|
||||||
|
})
|
||||||
for _, h := range childs {
|
for _, h := range childs {
|
||||||
done[h] = true
|
done[h] = true
|
||||||
thread = append(thread, h)
|
thread = append(thread, h)
|
||||||
|
|
Loading…
Reference in New Issue