there's always a funner name to be found

Ted Unangst 5 years ago
parent e0f1de4d9e
commit 4de8ca8b05

@ -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
}

@ -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 {

@ -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")

Loading…
Cancel
Save