there's always a funner name to be found

This commit is contained in:
Ted Unangst 2019-10-30 03:39:56 -04:00
parent e38684f4d2
commit ea2ea2d94c
3 changed files with 6 additions and 6 deletions

View File

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

8
fun.go
View File

@ -538,14 +538,14 @@ 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 false
}
func firstclass(honk *Honk) bool {
return honk.Audience[0] == thewholeworld

4
web.go
View File

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