there's always a funner name to be found
This commit is contained in:
parent
e38684f4d2
commit
ea2ea2d94c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
6
fun.go
6
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 {
|
||||
|
|
4
web.go
4
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")
|
||||
|
|
Loading…
Reference in New Issue