better effort to avoid duplicte deliveries
Ted Unangst tedu@tedunangst.com
Wed, 24 Jul 2019 20:27:13 -0400
1 files changed,
2 insertions(+),
6 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -908,12 +908,8 @@ rcpts := make(map[string]bool)
for _, a := range honk.Audience { if a != thewholeworld && a != user.URL && !strings.HasSuffix(a, "/followers") { box, _ := getboxes(a) - if box != nil { - if honk.Public && box.Shared != "" { - rcpts["%"+box.Shared] = true - } else { - rcpts["%"+box.In] = true - } + if box != nil && honk.Public && box.Shared != "" { + rcpts["%"+box.Shared] = true } else { rcpts[a] = true }