only pull in hidden audience if public
Ted Unangst tedu@tedunangst.com
Sun, 02 Jun 2019 02:36:10 -0400
1 files changed,
7 insertions(+),
1 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -826,7 +826,9 @@ var convoy string
if rid != "" { xonk := getxonk(userinfo.UserID, rid) if xonk != nil { - honk.Audience = append(honk.Audience, xonk.Audience...) + if xonk.Public { + honk.Audience = append(honk.Audience, xonk.Audience...) + } convoy = xonk.Convoy } else { xonkaud, c := whosthere(rid)@@ -853,6 +855,10 @@ convoy = "data:,electrichonkytonk-" + xfiltrate()
} butnottooloud(honk.Audience) honk.Audience = oneofakind(honk.Audience) + if len(honk.Audience) == 0 { + log.Printf("honk to nowhere") + return + } honk.Public = !keepitquiet(honk.Audience) noise = obfusbreak(noise) honk.Noise = noise