all repos — honk @ a12f4213c72fa9612586b4b8bfa453ed5a8000af

my fork of honk

only pull in hidden audience if public
Ted Unangst tedu@tedunangst.com
Sun, 02 Jun 2019 02:36:10 -0400
commit

a12f4213c72fa9612586b4b8bfa453ed5a8000af

parent

a8ed91082dbbb887dbe985d0d7d0e3b4cf4cf198

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M honk.gohonk.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