# HG changeset patch # User Ted Unangst # Date 1712455276 14400 # Sat Apr 06 22:01:16 2024 -0400 # Node ID f5e84e7fe357aadfd4ba7e8ff66423700e77c658 # Parent 8e2437c1123d91e1849f90c97d45a31db4584364 additional processing only for some activities diff --git a/activity.go b/activity.go --- a/activity.go +++ b/activity.go @@ -1725,15 +1725,17 @@ rcpts[h.XID] = true } } - for _, f := range getbacktracks(honk.XID) { - if f[0] == '%' { - rcpts[f] = true - } else { - box, ok := boxofboxes.Get(f) - if ok && box.Shared != "" { - rcpts["%"+box.Shared] = true + if honk.What == "update" { + for _, f := range getbacktracks(honk.XID) { + if f[0] == '%' { + rcpts[f] = true } else { - rcpts[f] = true + box, ok := boxofboxes.Get(f) + if ok && box.Shared != "" { + rcpts["%"+box.Shared] = true + } else { + rcpts[f] = true + } } } } @@ -1741,7 +1743,7 @@ for a := range rcpts { go deliverate(user.ID, a, msg) } - if honk.Public && len(honk.Onts) > 0 { + if (honk.What == "honk" || honk.What == "bonk") && honk.Public && len(honk.Onts) > 0 { collectiveaction(honk) } }