better effort to avoid duplicte deliveries

This commit is contained in:
Ted Unangst 2019-07-24 20:27:13 -04:00
parent bb4dfede0a
commit a84f5d8a50
1 changed files with 2 additions and 6 deletions

View File

@ -908,12 +908,8 @@ func honkworldwide(user *WhatAbout, honk *Honk) {
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
}