should only try to get boxes where not already guessed

This commit is contained in:
Ted Unangst 2022-02-04 12:45:44 -05:00
parent 0fb7095475
commit e01a9caf4d
1 changed files with 9 additions and 5 deletions

View File

@ -1372,12 +1372,16 @@ func honkworldwide(user *WhatAbout, honk *Honk) {
} }
} }
for _, f := range getbacktracks(honk.XID) { for _, f := range getbacktracks(honk.XID) {
var box *Box if f[0] == '%' {
ok := boxofboxes.Get(f, &box)
if ok && box.Shared != "" {
rcpts["%"+box.Shared] = true
} else {
rcpts[f] = true rcpts[f] = true
} else {
var box *Box
ok := boxofboxes.Get(f, &box)
if ok && box.Shared != "" {
rcpts["%"+box.Shared] = true
} else {
rcpts[f] = true
}
} }
} }
} }