From a84f5d8a50efcc3ad47211473ee578b9686bf9b7 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 24 Jul 2019 20:27:13 -0400 Subject: [PATCH] better effort to avoid duplicte deliveries --- activity.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/activity.go b/activity.go index c8a421b..1a75d82 100644 --- a/activity.go +++ b/activity.go @@ -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 }