better effort to avoid duplicte deliveries
This commit is contained in:
parent
bb4dfede0a
commit
a84f5d8a50
|
@ -908,12 +908,8 @@ func honkworldwide(user *WhatAbout, honk *Honk) {
|
||||||
for _, a := range honk.Audience {
|
for _, a := range honk.Audience {
|
||||||
if a != thewholeworld && a != user.URL && !strings.HasSuffix(a, "/followers") {
|
if a != thewholeworld && a != user.URL && !strings.HasSuffix(a, "/followers") {
|
||||||
box, _ := getboxes(a)
|
box, _ := getboxes(a)
|
||||||
if box != nil {
|
if box != nil && honk.Public && box.Shared != "" {
|
||||||
if honk.Public && box.Shared != "" {
|
|
||||||
rcpts["%"+box.Shared] = true
|
rcpts["%"+box.Shared] = true
|
||||||
} else {
|
|
||||||
rcpts["%"+box.In] = true
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
rcpts[a] = true
|
rcpts[a] = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue