From ea2ea2d94c560c1290729a362cf3bfbba1c5ad3c Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 30 Oct 2019 03:39:56 -0400 Subject: [PATCH] there's always a funner name to be found --- database.go | 2 +- fun.go | 6 +++--- web.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/database.go b/database.go index bfe5489..c18eb40 100644 --- a/database.go +++ b/database.go @@ -360,7 +360,7 @@ func scanhonk(row RowLike) *Honk { } h.Date, _ = time.Parse(dbtimeformat, dt) h.Audience = strings.Split(aud, " ") - h.Public = !keepitquiet(h.Audience) + h.Public = loudandproud(h.Audience) return h } diff --git a/fun.go b/fun.go index 34737b7..273fc1e 100644 --- a/fun.go +++ b/fun.go @@ -538,13 +538,13 @@ func butnottooloud(aud []string) { } } -func keepitquiet(aud []string) bool { +func loudandproud(aud []string) bool { for _, a := range aud { if a == thewholeworld { - return false + return true } } - return true + return false } func firstclass(honk *Honk) bool { diff --git a/web.go b/web.go index 0e128b8..49569a9 100644 --- a/web.go +++ b/web.go @@ -1032,7 +1032,7 @@ func sendzonkofsorts(xonk *Honk, user *WhatAbout, what string) { Date: time.Now().UTC(), Audience: oneofakind(xonk.Audience), } - zonk.Public = !keepitquiet(zonk.Audience) + zonk.Public = loudandproud(zonk.Audience) log.Printf("announcing %sed honk: %s", what, xonk.XID) go honkworldwide(user, zonk) @@ -1286,7 +1286,7 @@ func submithonk(w http.ResponseWriter, r *http.Request) { http.Error(w, "honk to nowhere...", http.StatusNotFound) return } - honk.Public = !keepitquiet(honk.Audience) + honk.Public = loudandproud(honk.Audience) honk.Convoy = convoy donkxid := r.FormValue("donkxid")