all repos — honk @ fe15f7e984dc6b5d0539e269dd85825f7f6c3dc3

my fork of honk

better effort to avoid duplicte deliveries
Ted Unangst tedu@tedunangst.com
Wed, 24 Jul 2019 20:27:13 -0400
commit

fe15f7e984dc6b5d0539e269dd85825f7f6c3dc3

parent

411b09fedc282ac1664c26e007a54ecc7a052a7d

1 files changed, 2 insertions(+), 6 deletions(-)

jump to
M activity.goactivity.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 }